[NFC][Py Reformat] Reformat python files in llvm
[llvm-project.git] / libclc / ptx-nvidiacl / lib / workitem / get_local_size.cl
blob5960d5d7993256b90d8a2e24078771d4c7b33f35
1 #include <clc/clc.h>
3 _CLC_DEF _CLC_OVERLOAD size_t get_local_size(uint dim) {
4 switch (dim) {
5 case 0: return __nvvm_read_ptx_sreg_ntid_x();
6 case 1: return __nvvm_read_ptx_sreg_ntid_y();
7 case 2: return __nvvm_read_ptx_sreg_ntid_z();
8 default: return 0;