-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
When compiling with OpenCL, I get
./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 😄.
Metadata
Metadata
Assignees
Labels
No labels