Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when trying to build hetero-mark #74

Open
bladernr opened this issue Mar 4, 2020 · 2 comments
Open

error when trying to build hetero-mark #74

bladernr opened this issue Mar 4, 2020 · 2 comments

Comments

@bladernr
Copy link

bladernr commented Mar 4, 2020

I'm looking at Hetero-Mark and following the instructions for building it. cmake seems to have had no errors, however when I try building, I get the following:

[ 16%] Building CXX object src/common/cl_util/CMakeFiles/cl_util.dir/cl_profiler.cc.o
[ 17%] Building CXX object src/common/cl_util/CMakeFiles/cl_util.dir/cl_runtime.cc.o
/home/ubuntu/Hetero-Mark/src/common/cl_util/cl_runtime.cc: In member function ‘_cl_command_queue* clHelper::clRuntime::getCmdQueue(unsigned int, cl_command_queue_properties)’:
/home/ubuntu/Hetero-Mark/src/common/cl_util/cl_runtime.cc:207:36: error: ignoring attributes on template argument ‘cl_queue_properties {aka long unsigned int}’ [-Werror=ignored-attributes]
std::vector<cl_queue_properties> queue_properties;
^
cc1plus: all warnings being treated as errors
src/common/cl_util/CMakeFiles/cl_util.dir/build.make:158: recipe for target 'src/common/cl_util/CMakeFiles/cl_util.dir/cl_runtime.cc.o' failed
make[2]: *** [src/common/cl_util/CMakeFiles/cl_util.dir/cl_runtime.cc.o] Error 1
CMakeFiles/Makefile2:366: recipe for target 'src/common/cl_util/CMakeFiles/cl_util.dir/all' failed
make[1]: *** [src/common/cl_util/CMakeFiles/cl_util.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

@han-minhee
Copy link

han-minhee commented Mar 5, 2020

I was experiencing the same issue when I've tried to compile it with openCL12 option.
I tried removing "\" from the script:
from cmake -DCOMPILE_OPENCL12=On ..\
to cmake -DCOMPILE_OPENCL12=On ..
and the problem was solved

@bladernr
Copy link
Author

bladernr commented Mar 6, 2020

So this appears to be only in the OpenCL code... at least I can compile the CUDA stuff without error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants