Open dbass81 opened 7 years ago
I followed the instructions at https://github.com/nicehash/nheqminer/tree/Linux and got the following output:
[ 76%] Building CXX object CMakeFiles/nheqminer_AMD.dir/home/dylan/nheqminer/ocl_device_utils/opencl.cpp.o /home/dylan/nheqminer/ocl_device_utils/opencl.cpp: In function ‘bool clCompileKernel(cl_context, cl_device_id, const char, const std::vector<const char>&, const char, cl_int, _cl_program)’: /home/dylan/nheqminer/ocl_device_utils/opencl.cpp:87:21: error: ‘system_error’ in namespace ‘std’ does not name a type } catch (std::system_error& e) { ^ /home/dylan/nheqminer/ocl_device_utils/opencl.cpp:88:35: error: ‘e’ was not declared in this scope fprintf(stderr, " %s\n", e.code().message().c_str()); ^ CMakeFiles/nheqminer_AMD.dir/build.make:422: recipe for target 'CMakeFiles/nheqminer_AMD.dir/home/dylan/nheqminer/ocl_device_utils/opencl.cpp.o' failed make[2]: ** [CMakeFiles/nheqminer_AMD.dir/home/dylan/nheqminer/ocl_device_utils/opencl.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/nheqminer_AMD.dir/all' failed make[1]: [CMakeFiles/nheqminer_AMD.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: [all] Error 2
If OpenCL has been dropped from nheqminer, then how do we build on Linux for AMD GPUs?
This ocl_device_utils/opencl.cpp file is missing this:
ocl_device_utils/opencl.cpp
#include <system_error>
Add it and re-compile.
I followed the instructions at https://github.com/nicehash/nheqminer/tree/Linux and got the following output:
[ 76%] Building CXX object CMakeFiles/nheqminer_AMD.dir/home/dylan/nheqminer/ocl_device_utils/opencl.cpp.o /home/dylan/nheqminer/ocl_device_utils/opencl.cpp: In function ‘bool clCompileKernel(cl_context, cl_device_id, const char, const std::vector<const char>&, const char, cl_int, _cl_program)’: /home/dylan/nheqminer/ocl_device_utils/opencl.cpp:87:21: error: ‘system_error’ in namespace ‘std’ does not name a type } catch (std::system_error& e) { ^ /home/dylan/nheqminer/ocl_device_utils/opencl.cpp:88:35: error: ‘e’ was not declared in this scope fprintf(stderr, " %s\n", e.code().message().c_str());
^
CMakeFiles/nheqminer_AMD.dir/build.make:422: recipe for target 'CMakeFiles/nheqminer_AMD.dir/home/dylan/nheqminer/ocl_device_utils/opencl.cpp.o' failed
make[2]: ** [CMakeFiles/nheqminer_AMD.dir/home/dylan/nheqminer/ocl_device_utils/opencl.cpp.o] Error 1
make[2]: Waiting for unfinished jobs....
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/nheqminer_AMD.dir/all' failed
make[1]: [CMakeFiles/nheqminer_AMD.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: [all] Error 2
If OpenCL has been dropped from nheqminer, then how do we build on Linux for AMD GPUs?