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 the official Boost.Compute documentation, the tutorial starts with how to get Boost.Compute running as succinctly as:
g++ -I/path/to/compute/include main.cpp -lOpenCL
But it won't work.
It seems we also need to add Boost in the include path, as many source files need Boost library features such as BOOST_STATIC_ASSERT(). So maybe the tutorial can be updated to clear up some confusions
The tutorial also implies no external dependencies are needed. I need to define macro BOOST_COMPUTE_NO_BOOST_CHRONO to disable linking with libboost_chrono. Again it seems to go undocumented too
For reference, here is my cmake script for compiling example/hello_world.cpp to make it compile without external dependencies.
In the official Boost.Compute documentation, the tutorial starts with how to get Boost.Compute running as succinctly as:
g++ -I/path/to/compute/include main.cpp -lOpenCL
But it won't work.
It seems we also need to add Boost in the include path, as many source files need Boost library features such as
BOOST_STATIC_ASSERT()
. So maybe the tutorial can be updated to clear up some confusionsThe tutorial also implies no external dependencies are needed. I need to define macro
BOOST_COMPUTE_NO_BOOST_CHRONO
to disable linking withlibboost_chrono
. Again it seems to go undocumented tooFor reference, here is my cmake script for compiling
example/hello_world.cpp
to make it compile without external dependencies.The text was updated successfully, but these errors were encountered: