Skip to content

Commit c980082

Browse files
committed
Minor cosmetics
1 parent e9a85eb commit c980082

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/opencl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ class Device {
261261
string(info.patch_nvidia_fp16 ? "\n #define cl_khr_fp16" : "")+ // Nvidia Pascal and newer GPUs with driver>=520.00 don't report cl_khr_fp16, but do support basic FP16 arithmetic
262262
string(info.patch_legacy_gpu_fma ? "\n #define fma(a, b, c) ((a)*(b)+(c))" : "")+ // some old GPUs have terrible fma performance, so replace with a*b+c
263263
string(info.nvidia_compute_capability ? "\n #define cl_nv_compute_capability "+to_string(info.nvidia_compute_capability) : "")+ // allows querying Nvidia compute capability for inline PTX
264-
"\n #define def_workgroup_size "+to_string(WORKGROUP_SIZE)+"u"
264+
"\n #define cl_workgroup_size "+to_string(WORKGROUP_SIZE)+"u"
265265
"\n #ifdef cl_khr_fp64"
266266
"\n #pragma OPENCL EXTENSION cl_khr_fp64 : enable" // make sure cl_khr_fp64 extension is enabled
267267
"\n #endif"

0 commit comments

Comments
 (0)