Browse Source

apple compute cap fix

cl-refactor
Genoil 9 years ago
parent
commit
ca4e14ebd7
  1. 9
      libethash-cl/ethash_cl_miner.cpp

9
libethash-cl/ethash_cl_miner.cpp

@ -52,6 +52,15 @@
#define CL_MEM_HOST_READ_ONLY 0
#endif
// apple fix
#ifndef CL_DEVICE_COMPUTE_CAPABILITY_MAJOR_NV
#define CL_DEVICE_COMPUTE_CAPABILITY_MAJOR_NV 0x4000
#endif
#ifndef CL_DEVICE_COMPUTE_CAPABILITY_MINOR_NV
#define CL_DEVICE_COMPUTE_CAPABILITY_MINOR_NV 0x4001
#endif
#undef min
#undef max

Loading…
Cancel
Save