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
In windows, there is an error when compiling test_command_queue.cpp for mismatch convension.
test_command_queue.cpp:232:11: error: no matching member function for call to 'enqueue_native_kernel'
queue.enqueue_native_kernel(&nullary_kernel);
~~~~~~^~~~~~~~~~~~~~~~~~~~~
../../..\boost/compute/command_queue.hpp:1534:11: note: candidate function not viable: no known conversion from 'void ()()' to 'void ()() attribute((stdcall))' for 1st argument
event enqueue_native_kernel(void (BOOST_COMPUTE_CL_CALLBACK *user_func)(void),
^
../../..\boost/compute/command_queue.hpp:1502:11: note: candidate function not viable: requires at least 6 arguments, but 1 was provided
event enqueue_native_kernel(void (BOOST_COMPUTE_CL_CALLBACK *user_func)(void *),
^
After changing code in test_command_queue.cpp from "static void nullary_kernel()" to "static __stdcall void nullary_kernel()", above error became gone.
This issue is similar with #36.
Please help to fix.
The text was updated successfully, but these errors were encountered:
In windows, there is an error when compiling test_command_queue.cpp for mismatch convension.
After changing code in test_command_queue.cpp from "static void nullary_kernel()" to "static __stdcall void nullary_kernel()", above error became gone.
This issue is similar with #36.
Please help to fix.
The text was updated successfully, but these errors were encountered: