You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./include/ocldev.h: In member function ‘void dev::memory<T>::copy(const dev::memory<T>&, cl_bool)’:
./include/ocldev.h:578:9: error: there are no arguments to ‘cmalloc’ that depend on a template parameter, so a declaration of ‘cmalloc’ must be available [-fpermissive]
578 | cmalloc(src.n, DeviceMemFlags);
| ^~~~~~~
./include/ocldev.h:578:9: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
There seems to be a cmalloc in bonsai's my_ocl.h, but it's not quite compatible. Anyway this code looks a bit odd to me, maybe it should be calling allocate(src.n, DeviceMemFlags);? That compiles, but I haven't tested it yet, I need to go find a machine that can actually run OpenCL 😄.
The text was updated successfully, but these errors were encountered:
When compiling with OpenCL, I get
There seems to be a
cmalloc
inbonsai
'smy_ocl.h
, but it's not quite compatible. Anyway this code looks a bit odd to me, maybe it should be callingallocate(src.n, DeviceMemFlags);
? That compiles, but I haven't tested it yet, I need to go find a machine that can actually run OpenCL 😄.The text was updated successfully, but these errors were encountered: