#1 Error report: cstdlib:75:15: fatal error: stdlib.h: No such file or directory

Offen
vor 3 Jahren geöffnet von Bogdan107 · 8 Kommentare
Bogdan107 kommentierte vor 3 Jahren

GeForce GTX 1650 Gentoo gcc 9.3.0/10.3.0 nvidia-cuda-sdk 11.2.0

git clone --depth 1 https://notabug.org/frodo_buggins/ygg-brute
cd ygg-brute
cmake -H. -Bbuild -DCMAKE_CUDA_ARCHITECTURES=75
cmake --build build

The same error with gcc-9.3.0 and gcc-10.3.0.

Cnake log attached.

GeForce GTX 1650 Gentoo gcc 9.3.0/10.3.0 nvidia-cuda-sdk 11.2.0 ``` git clone --depth 1 https://notabug.org/frodo_buggins/ygg-brute cd ygg-brute cmake -H. -Bbuild -DCMAKE_CUDA_ARCHITECTURES=75 cmake --build build ``` The same error with gcc-9.3.0 and gcc-10.3.0. Cnake log attached.
Bogdan107 kommentierte vor 3 Jahren
Ersteller
In file included from /home/miki/del/ygg-brute/src/cuda/engine.cu:27:
/home/miki/del/ygg-brute/src/generic/scalar_mul.h:36:74: warning: backslash-newline at end of file
   36 | #define load_fold_table(DST, SRC)                                        \
      |                                                                           
/home/miki/del/ygg-brute/src/cuda/engine.cu(54): warning: variable "cuda::<unnamed>::l_3" was declared but never referenced

/home/miki/del/ygg-brute/src/cuda/engine.cu(60): warning: variable "cuda::<unnamed>::l_3_lb" was declared but never referenced

/home/miki/del/ygg-brute/src/cuda/engine.cu(96): warning: function "cuda::<unnamed>::dbg_point(const char *, const AffineNielsPoint &)" was declared but never referenced

/home/miki/del/ygg-brute/src/cuda/engine.cu(86): warning: function "cuda::<unnamed>::dbg_point(const char *, const EdwardsPoint &)" was declared but never referenced

ptxas info    : 0 bytes gmem, 1024 bytes cmem[3]
ptxas info    : Compiling entry function 'compute_address_kernel_v1' for 'sm_75'
ptxas info    : Function properties for compute_address_kernel_v1
    32 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info    : Used 94 registers, 376 bytes cmem[0]
ptxas info    : Compiling entry function 'batch_invert_kernel_2' for 'sm_75'
ptxas info    : Function properties for batch_invert_kernel_2
    0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info    : Used 64 registers, 376 bytes cmem[0]
ptxas info    : Compiling entry function 'batch_invert_kernel_1' for 'sm_75'
ptxas info    : Function properties for batch_invert_kernel_1
    0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info    : Used 72 registers, 368 bytes cmem[0]
ptxas info    : Compiling entry function 'batch_invert_kernel_0' for 'sm_75'
ptxas info    : Function properties for batch_invert_kernel_0
    0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info    : Used 62 registers, 376 bytes cmem[0]
ptxas info    : Compiling entry function 'compute_uv_kernel_1' for 'sm_75'
ptxas info    : Function properties for compute_uv_kernel_1
    0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info    : Used 64 registers, 64 bytes smem, 424 bytes cmem[0]
ptxas info    : Compiling entry function 'compute_uv_kernel_0' for 'sm_75'
ptxas info    : Function properties for compute_uv_kernel_0
    0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info    : Used 72 registers, 32 bytes smem, 392 bytes cmem[0]
ptxas info    : Compiling entry function 'compute_midstate_kernel_1' for 'sm_75'
ptxas info    : Function properties for compute_midstate_kernel_1
    0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info    : Used 117 registers, 384 bytes cmem[0]
ptxas info    : Compiling entry function 'compute_midstate_kernel_0' for 'sm_75'
ptxas info    : Function properties for compute_midstate_kernel_0
    64 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info    : Used 124 registers, 24576 bytes smem, 408 bytes cmem[0]
ptxas info    : Compiling entry function 'precompute_addends_kernel' for 'sm_75'
ptxas info    : Function properties for precompute_addends_kernel
    32 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info    : Used 123 registers, 24576 bytes smem, 400 bytes cmem[0]
In file included from /home/miki/del/ygg-brute/src/cuda/engine.cu:27:
/home/miki/del/ygg-brute/src/generic/scalar_mul.h:36:74: warning: backslash-newline at end of file
   36 | #define load_fold_table(DST, SRC)                                        \
      |                                                                           
/home/miki/del/ygg-brute/src/cuda/engine.cu: In member function ‘virtual void cuda::_GLOBAL__N__41_tmpxft_0001dac7_00000000_7_engine_cpp1_ii_d855fbfe::CudaEngine::print_info()’:
/home/miki/del/ygg-brute/src/cuda/engine.cu:420:8: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘std::vector<cudaDeviceProp>::size_type’ {aka ‘long unsigned int’} [-Wformat=]
  420 |         printf("CUDA: %d devices\n", props.size());
      |        ^~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~
      |                                        |
      |                                        std::vector<cudaDeviceProp>::size_type {aka long unsigned int}
/home/miki/del/ygg-brute/src/cuda/engine.cu:424:8: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
  424 |             printf("Device #%d (%s)\n", i, prop.name);
      |        ^    ~~~~~~~~~~~~~~  ~
      |                             |
      |                             size_t {aka long unsigned int}
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/include/g++-v10/ext/string_conversions.h:41,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/include/g++-v10/bits/basic_string.h:6545,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/include/g++-v10/string:55,
                 from /home/miki/del/ygg-brute/src/opencl/../engine.hpp:10,
                 from /home/miki/del/ygg-brute/src/opencl/engine.hpp:9,
                 from /home/miki/del/ygg-brute/src/opencl/engine.cpp:7:
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/include/g++-v10/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
   75 | #include_next <stdlib.h>
      |               ^~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/opencl-engine.dir/build.make:82: CMakeFiles/opencl-engine.dir/src/opencl/engine.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:131: CMakeFiles/opencl-engine.dir/all] Error 2
gmake: *** [Makefile:114: all] Error 2
``` In file included from /home/miki/del/ygg-brute/src/cuda/engine.cu:27: /home/miki/del/ygg-brute/src/generic/scalar_mul.h:36:74: warning: backslash-newline at end of file 36 | #define load_fold_table(DST, SRC) \ | /home/miki/del/ygg-brute/src/cuda/engine.cu(54): warning: variable "cuda::<unnamed>::l_3" was declared but never referenced /home/miki/del/ygg-brute/src/cuda/engine.cu(60): warning: variable "cuda::<unnamed>::l_3_lb" was declared but never referenced /home/miki/del/ygg-brute/src/cuda/engine.cu(96): warning: function "cuda::<unnamed>::dbg_point(const char *, const AffineNielsPoint &)" was declared but never referenced /home/miki/del/ygg-brute/src/cuda/engine.cu(86): warning: function "cuda::<unnamed>::dbg_point(const char *, const EdwardsPoint &)" was declared but never referenced ptxas info : 0 bytes gmem, 1024 bytes cmem[3] ptxas info : Compiling entry function 'compute_address_kernel_v1' for 'sm_75' ptxas info : Function properties for compute_address_kernel_v1 32 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 94 registers, 376 bytes cmem[0] ptxas info : Compiling entry function 'batch_invert_kernel_2' for 'sm_75' ptxas info : Function properties for batch_invert_kernel_2 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 64 registers, 376 bytes cmem[0] ptxas info : Compiling entry function 'batch_invert_kernel_1' for 'sm_75' ptxas info : Function properties for batch_invert_kernel_1 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 72 registers, 368 bytes cmem[0] ptxas info : Compiling entry function 'batch_invert_kernel_0' for 'sm_75' ptxas info : Function properties for batch_invert_kernel_0 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 62 registers, 376 bytes cmem[0] ptxas info : Compiling entry function 'compute_uv_kernel_1' for 'sm_75' ptxas info : Function properties for compute_uv_kernel_1 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 64 registers, 64 bytes smem, 424 bytes cmem[0] ptxas info : Compiling entry function 'compute_uv_kernel_0' for 'sm_75' ptxas info : Function properties for compute_uv_kernel_0 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 72 registers, 32 bytes smem, 392 bytes cmem[0] ptxas info : Compiling entry function 'compute_midstate_kernel_1' for 'sm_75' ptxas info : Function properties for compute_midstate_kernel_1 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 117 registers, 384 bytes cmem[0] ptxas info : Compiling entry function 'compute_midstate_kernel_0' for 'sm_75' ptxas info : Function properties for compute_midstate_kernel_0 64 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 124 registers, 24576 bytes smem, 408 bytes cmem[0] ptxas info : Compiling entry function 'precompute_addends_kernel' for 'sm_75' ptxas info : Function properties for precompute_addends_kernel 32 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 123 registers, 24576 bytes smem, 400 bytes cmem[0] In file included from /home/miki/del/ygg-brute/src/cuda/engine.cu:27: /home/miki/del/ygg-brute/src/generic/scalar_mul.h:36:74: warning: backslash-newline at end of file 36 | #define load_fold_table(DST, SRC) \ | /home/miki/del/ygg-brute/src/cuda/engine.cu: In member function ‘virtual void cuda::_GLOBAL__N__41_tmpxft_0001dac7_00000000_7_engine_cpp1_ii_d855fbfe::CudaEngine::print_info()’: /home/miki/del/ygg-brute/src/cuda/engine.cu:420:8: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘std::vector<cudaDeviceProp>::size_type’ {aka ‘long unsigned int’} [-Wformat=] 420 | printf("CUDA: %d devices\n", props.size()); | ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ | | | std::vector<cudaDeviceProp>::size_type {aka long unsigned int} /home/miki/del/ygg-brute/src/cuda/engine.cu:424:8: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=] 424 | printf("Device #%d (%s)\n", i, prop.name); | ^ ~~~~~~~~~~~~~~ ~ | | | size_t {aka long unsigned int} In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/include/g++-v10/ext/string_conversions.h:41, from /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/include/g++-v10/bits/basic_string.h:6545, from /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/include/g++-v10/string:55, from /home/miki/del/ygg-brute/src/opencl/../engine.hpp:10, from /home/miki/del/ygg-brute/src/opencl/engine.hpp:9, from /home/miki/del/ygg-brute/src/opencl/engine.cpp:7: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/include/g++-v10/cstdlib:75:15: fatal error: stdlib.h: No such file or directory 75 | #include_next <stdlib.h> | ^~~~~~~~~~ compilation terminated. gmake[2]: *** [CMakeFiles/opencl-engine.dir/build.make:82: CMakeFiles/opencl-engine.dir/src/opencl/engine.cpp.o] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:131: CMakeFiles/opencl-engine.dir/all] Error 2 gmake: *** [Makefile:114: all] Error 2 ```
frodo_buggins kommentierte vor 3 Jahren
Besitzer

Could you please provide verbose cmake log (obtained by adding --verbose flag to the second build command, like cmake --build build --verbose)? Also, a quick internet search suggests that it might have something to do with -isystem gcc flag.

Could you please provide verbose cmake log (obtained by adding `--verbose` flag to the second build command, like `cmake --build build --verbose`)? Also, a quick internet search suggests that it might have something to do with `-isystem` gcc flag.
Bogdan107 kommentierte vor 3 Jahren
Ersteller
$ cd ~/del

$ rm -rf ygg-brute

$ LC_ALL=en_US.UTF-8 git clone --depth 1 https://notabug.org/frodo_buggins/ygg-brute
Cloning into 'ygg-brute'...
remote: Counting objects: 64, done.
remote: Compressing objects: 100% (60/60), done.
remote: Total 64 (delta 8), reused 0 (delta 0)
Unpacking objects: 100% (64/64), 172.77 KiB | 858.00 KiB/s, done.

$ cd ygg-brute

$ LC_ALL=en_US.UTF-8 cmake -H. -Bbuild -DCMAKE_CUDA_ARCHITECTURES=75
-- The CXX compiler identification is GNU 10.3.0
-- The CUDA compiler identification is NVIDIA 11.2.67
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: /opt/cuda/bin/nvcc - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Looking for CL_VERSION_2_2
-- Looking for CL_VERSION_2_2 - found
-- Found OpenCL: /usr/lib64/libOpenCL.so (found version "2.2") 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/miki/del/ygg-brute/build

$ LC_ALL=en_US.UTF-8 cmake --build build --verbose
/usr/bin/cmake -S/home/miki/del/ygg-brute -B/home/miki/del/ygg-brute/build --check-build-system CMakeFiles/Makefile.cmake 0                                                                                                                   
/usr/bin/cmake -E cmake_progress_start /home/miki/del/ygg-brute/build/CMakeFiles /home/miki/del/ygg-brute/build//CMakeFiles/progress.marks                                                                                                    
/usr/bin/gmake  -f CMakeFiles/Makefile2 all                                                                                                                                                                                                   
gmake[1]: Entering directory '/home/miki/del/ygg-brute/build'                                                                                                                                                                                 
/usr/bin/gmake  -f CMakeFiles/cuda-engine.dir/build.make CMakeFiles/cuda-engine.dir/depend                                                                                                                                                    
gmake[2]: Entering directory '/home/miki/del/ygg-brute/build'                                                                                                                                                                                 
cd /home/miki/del/ygg-brute/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/miki/del/ygg-brute /home/miki/del/ygg-brute /home/miki/del/ygg-brute/build /home/miki/del/ygg-brute/build /home/miki/del/ygg-brute/build/CMakeFile
s/cuda-engine.dir/DependInfo.cmake --color=                                                                                                                                                                                                   
Dependee "/home/miki/del/ygg-brute/build/CMakeFiles/cuda-engine.dir/DependInfo.cmake" is newer than depender "/home/miki/del/ygg-brute/build/CMakeFiles/cuda-engine.dir/depend.internal".                                                     
Dependee "/home/miki/del/ygg-brute/build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/miki/del/ygg-brute/build/CMakeFiles/cuda-engine.dir/depend.internal".                                                      
Scanning dependencies of target cuda-engine                                                                                                                                                                                                   
gmake[2]: Leaving directory '/home/miki/del/ygg-brute/build'                                                                                                                                                                                  
/usr/bin/gmake  -f CMakeFiles/cuda-engine.dir/build.make CMakeFiles/cuda-engine.dir/build                                                                                                                                                     
gmake[2]: Entering directory '/home/miki/del/ygg-brute/build'                                                                                                                                                                                 
[  8%] Building CUDA object CMakeFiles/cuda-engine.dir/src/cuda/engine.cu.o                                                                                                                                                                   
/opt/cuda/bin/nvcc -forward-unknown-to-host-compiler  -I/home/miki/del/ygg-brute/src -I/home/miki/del/ygg-brute/third_party -O3 -Xptxas -O4 -Xptxas -v --generate-code=arch=compute_75,code=[compute_75,sm_75] -std=c++17 -x cu -c /home/miki/
del/ygg-brute/src/cuda/engine.cu -o CMakeFiles/cuda-engine.dir/src/cuda/engine.cu.o                                                                                                                                                           
In file included from /home/miki/del/ygg-brute/src/cuda/engine.cu:27:                                                                                                                                                                         
/home/miki/del/ygg-brute/src/generic/scalar_mul.h:36:74: warning: backslash-newline at end of file                                                                                                                                            
   36 | #define load_fold_table(DST, SRC)                                        \                                                                                                                                                            
      |                                                                                                                                                                                                                                       
/home/miki/del/ygg-brute/src/cuda/engine.cu(54): warning: variable "cuda::<unnamed>::l_3" was declared but never referenced                                                                                                                   
                                                                                                                                                                                                                                              
/home/miki/del/ygg-brute/src/cuda/engine.cu(60): warning: variable "cuda::<unnamed>::l_3_lb" was declared but never referenced                                                                                                                
                                                                                                                                                                                                                                              
/home/miki/del/ygg-brute/src/cuda/engine.cu(96): warning: function "cuda::<unnamed>::dbg_point(const char *, const AffineNielsPoint &)" was declared but never referenced                                                                     
                                                                                                                                                                                                                                              
/home/miki/del/ygg-brute/src/cuda/engine.cu(86): warning: function "cuda::<unnamed>::dbg_point(const char *, const EdwardsPoint &)" was declared but never referenced                                                                         
                                                                                                                                                                                                                                              
ptxas info    : 0 bytes gmem, 1024 bytes cmem[3]                                                                                                                                                                                              
ptxas info    : Compiling entry function 'compute_address_kernel_v1' for 'sm_75'                                                                                                                                                              
ptxas info    : Function properties for compute_address_kernel_v1                                                                                                                                                                             
    32 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads                                                                                                                                                                           
ptxas info    : Used 94 registers, 376 bytes cmem[0]                                                                                                                                                                                          
ptxas info    : Compiling entry function 'batch_invert_kernel_2' for 'sm_75'                                                                                                                                                                  
ptxas info    : Function properties for batch_invert_kernel_2                                                                                                                                                                                 
    0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads                                                                                                                                                                            
ptxas info    : Used 64 registers, 376 bytes cmem[0]                                                                                                                                                                                          
ptxas info    : Compiling entry function 'batch_invert_kernel_1' for 'sm_75'                                                                                                                                                                  
ptxas info    : Function properties for batch_invert_kernel_1                                                                                                                                                                                 
    0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads                                                                                                                                                                            
ptxas info    : Used 72 registers, 368 bytes cmem[0]                                                                                                                                                                                          
ptxas info    : Compiling entry function 'batch_invert_kernel_0' for 'sm_75'                                                                                                                                                                  
ptxas info    : Function properties for batch_invert_kernel_0                                                                                                                                                                                 
    0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads                                                                                                                                                                            
ptxas info    : Used 62 registers, 376 bytes cmem[0]                                                                                                                                                                                          
ptxas info    : Compiling entry function 'compute_uv_kernel_1' for 'sm_75'                                                                                                                                                                    
ptxas info    : Function properties for compute_uv_kernel_1                                                                                                                                                                                   
    0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads                                                                                                                                                                            
ptxas info    : Used 64 registers, 64 bytes smem, 424 bytes cmem[0]                                                                                                                                                                           
ptxas info    : Compiling entry function 'compute_uv_kernel_0' for 'sm_75'                                                                                                                                                                    
ptxas info    : Function properties for compute_uv_kernel_0                                                                                                                                                                                   
    0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info    : Used 72 registers, 32 bytes smem, 392 bytes cmem[0]
ptxas info    : Compiling entry function 'compute_midstate_kernel_1' for 'sm_75'
ptxas info    : Function properties for compute_midstate_kernel_1
    0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info    : Used 117 registers, 384 bytes cmem[0]
ptxas info    : Compiling entry function 'compute_midstate_kernel_0' for 'sm_75'
ptxas info    : Function properties for compute_midstate_kernel_0
    64 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info    : Used 124 registers, 24576 bytes smem, 408 bytes cmem[0]
ptxas info    : Compiling entry function 'precompute_addends_kernel' for 'sm_75'
ptxas info    : Function properties for precompute_addends_kernel
    32 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info    : Used 123 registers, 24576 bytes smem, 400 bytes cmem[0]
In file included from /home/miki/del/ygg-brute/src/cuda/engine.cu:27:                                                                                                                                                                  [28/98]
/home/miki/del/ygg-brute/src/generic/scalar_mul.h:36:74: warning: backslash-newline at end of file
   36 | #define load_fold_table(DST, SRC)                                        \
      |                                                                            
/home/miki/del/ygg-brute/src/cuda/engine.cu: In member function ‘virtual void cuda::_GLOBAL__N__41_tmpxft_0009749c_00000000_7_engine_cpp1_ii_d855fbfe::CudaEngine::print_info()’:
/home/miki/del/ygg-brute/src/cuda/engine.cu:420:8: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘std::vector<cudaDeviceProp>::size_type’ {aka ‘long unsigned int’} [-Wformat=]
  420 |         printf("CUDA: %d devices\n", props.size());
      |        ^~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~
      |                                        |
      |                                        std::vector<cudaDeviceProp>::size_type {aka long unsigned int}
/home/miki/del/ygg-brute/src/cuda/engine.cu:424:8: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
  424 |             printf("Device #%d (%s)\n", i, prop.name);
      |        ^    ~~~~~~~~~~~~~~  ~
      |                             |
      |                             size_t {aka long unsigned int}
[ 16%] Linking CUDA static library libcuda-engine.a
/usr/bin/cmake -P CMakeFiles/cuda-engine.dir/cmake_clean_target.cmake
/usr/bin/cmake -E cmake_link_script CMakeFiles/cuda-engine.dir/link.txt --verbose=1
/usr/bin/ar qc libcuda-engine.a CMakeFiles/cuda-engine.dir/src/cuda/engine.cu.o
/usr/bin/ranlib libcuda-engine.a
gmake[2]: Leaving directory '/home/miki/del/ygg-brute/build'
[ 16%] Built target cuda-engine
/usr/bin/gmake  -f CMakeFiles/cuda-generator-test.dir/build.make CMakeFiles/cuda-generator-test.dir/depend
gmake[2]: Entering directory '/home/miki/del/ygg-brute/build'
cd /home/miki/del/ygg-brute/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/miki/del/ygg-brute /home/miki/del/ygg-brute /home/miki/del/ygg-brute/build /home/miki/del/ygg-brute/build /home/miki/del/ygg-brute/build/CMakeFile
s/cuda-generator-test.dir/DependInfo.cmake --color=
Dependee "/home/miki/del/ygg-brute/build/CMakeFiles/cuda-generator-test.dir/DependInfo.cmake" is newer than depender "/home/miki/del/ygg-brute/build/CMakeFiles/cuda-generator-test.dir/depend.internal".
Dependee "/home/miki/del/ygg-brute/build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/miki/del/ygg-brute/build/CMakeFiles/cuda-generator-test.dir/depend.internal".
Scanning dependencies of target cuda-generator-test
gmake[2]: Leaving directory '/home/miki/del/ygg-brute/build'
/usr/bin/gmake  -f CMakeFiles/cuda-generator-test.dir/build.make CMakeFiles/cuda-generator-test.dir/build
gmake[2]: Entering directory '/home/miki/del/ygg-brute/build'
[ 25%] Building CXX object CMakeFiles/cuda-generator-test.dir/test/cuda_generator_test.cpp.o
/usr/bin/c++  -I/home/miki/del/ygg-brute/src -I/home/miki/del/ygg-brute/test -O3 -std=gnu++17 -o CMakeFiles/cuda-generator-test.dir/test/cuda_generator_test.cpp.o -c /home/miki/del/ygg-brute/test/cuda_generator_test.cpp
[ 33%] Linking CXX executable cuda-generator-test
/usr/bin/cmake -E cmake_link_script CMakeFiles/cuda-generator-test.dir/link.txt --verbose=1
/usr/bin/c++  -O3 -lsodium CMakeFiles/cuda-generator-test.dir/test/cuda_generator_test.cpp.o -o cuda-generator-test   -L/opt/cuda/targets/x86_64-linux/lib/stubs  -L/opt/cuda/targets/x86_64-linux/lib  libcuda-engine.a -lcudadevrt -lcudart_
static -lrt -lpthread -ldl 
gmake[2]: Leaving directory '/home/miki/del/ygg-brute/build'
[ 33%] Built target cuda-generator-test
/usr/bin/gmake  -f CMakeFiles/opencl-kernel.dir/build.make CMakeFiles/opencl-kernel.dir/depend
gmake[2]: Entering directory '/home/miki/del/ygg-brute/build'
cd /home/miki/del/ygg-brute/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/miki/del/ygg-brute /home/miki/del/ygg-brute /home/miki/del/ygg-brute/build /home/miki/del/ygg-brute/build /home/miki/del/ygg-brute/build/CMakeFile
s/opencl-kernel.dir/DependInfo.cmake --color=
Dependee "/home/miki/del/ygg-brute/build/CMakeFiles/opencl-kernel.dir/DependInfo.cmake" is newer than depender "/home/miki/del/ygg-brute/build/CMakeFiles/opencl-kernel.dir/depend.internal".
Dependee "/home/miki/del/ygg-brute/build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/miki/del/ygg-brute/build/CMakeFiles/opencl-kernel.dir/depend.internal".
Scanning dependencies of target opencl-kernel
gmake[2]: Leaving directory '/home/miki/del/ygg-brute/build'
/usr/bin/gmake  -f CMakeFiles/opencl-kernel.dir/build.make CMakeFiles/opencl-kernel.dir/build
gmake[2]: Entering directory '/home/miki/del/ygg-brute/build'
[ 41%] Generating preprocessed kernel /home/miki/del/ygg-brute/build/kernel.cl
cpp -I /home/miki/del/ygg-brute/src -I /home/miki/del/ygg-brute/src/opencl/kernel /home/miki/del/ygg-brute/src/opencl/kernel/kernel.cl -o /home/miki/del/ygg-brute/build/kernel.cl
In file included from /home/miki/del/ygg-brute/src/opencl/kernel/kernel.cl:17:
/home/miki/del/ygg-brute/src/generic/scalar_mul.h:36:74: warning: backslash-newline at end of file
   36 | #define load_fold_table(DST, SRC)                                        \
      |                                                                            
[ 50%] Generating kernel.cl.h
xxd -i kernel.cl /home/miki/del/ygg-brute/build/kernel.cl.h 
gmake[2]: Leaving directory '/home/miki/del/ygg-brute/build'
[ 50%] Built target opencl-kernel
/usr/bin/gmake  -f CMakeFiles/opencl-engine.dir/build.make CMakeFiles/opencl-engine.dir/depend
gmake[2]: Entering directory '/home/miki/del/ygg-brute/build'
cd /home/miki/del/ygg-brute/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/miki/del/ygg-brute /home/miki/del/ygg-brute /home/miki/del/ygg-brute/build /home/miki/del/ygg-brute/build /home/miki/del/ygg-brute/build/CMakeFile
s/opencl-engine.dir/DependInfo.cmake --color=
Dependee "/home/miki/del/ygg-brute/build/CMakeFiles/opencl-engine.dir/DependInfo.cmake" is newer than depender "/home/miki/del/ygg-brute/build/CMakeFiles/opencl-engine.dir/depend.internal".
Dependee "/home/miki/del/ygg-brute/build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/miki/del/ygg-brute/build/CMakeFiles/opencl-engine.dir/depend.internal".
Scanning dependencies of target opencl-engine
gmake[2]: Leaving directory '/home/miki/del/ygg-brute/build'
/usr/bin/gmake  -f CMakeFiles/opencl-engine.dir/build.make CMakeFiles/opencl-engine.dir/build
gmake[2]: Entering directory '/home/miki/del/ygg-brute/build'
[ 58%] Building CXX object CMakeFiles/opencl-engine.dir/src/opencl/engine.cpp.o
/usr/bin/c++  -I/home/miki/del/ygg-brute/src -I/home/miki/del/ygg-brute/third_party -I/home/miki/del/ygg-brute/build -O3 -std=gnu++17 -o CMakeFiles/opencl-engine.dir/src/opencl/engine.cpp.o -c /home/miki/del/ygg-brute/src/opencl/engine.cpp
In file included from /home/miki/del/ygg-brute/src/opencl/engine.cpp:13:
/home/miki/del/ygg-brute/src/opencl/util.hpp:9:10: fatal error: CL/cl.hpp: No such file or directory
    9 | #include <CL/cl.hpp>
      |          ^~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/opencl-engine.dir/build.make:82: CMakeFiles/opencl-engine.dir/src/opencl/engine.cpp.o] Error 1
gmake[2]: Leaving directory '/home/miki/del/ygg-brute/build'
gmake[1]: *** [CMakeFiles/Makefile2:131: CMakeFiles/opencl-engine.dir/all] Error 2
gmake[1]: Leaving directory '/home/miki/del/ygg-brute/build'
gmake: *** [Makefile:114: all] Error 2
``` $ cd ~/del $ rm -rf ygg-brute $ LC_ALL=en_US.UTF-8 git clone --depth 1 https://notabug.org/frodo_buggins/ygg-brute Cloning into 'ygg-brute'... remote: Counting objects: 64, done. remote: Compressing objects: 100% (60/60), done. remote: Total 64 (delta 8), reused 0 (delta 0) Unpacking objects: 100% (64/64), 172.77 KiB | 858.00 KiB/s, done. $ cd ygg-brute $ LC_ALL=en_US.UTF-8 cmake -H. -Bbuild -DCMAKE_CUDA_ARCHITECTURES=75 -- The CXX compiler identification is GNU 10.3.0 -- The CUDA compiler identification is NVIDIA 11.2.67 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detecting CUDA compiler ABI info -- Detecting CUDA compiler ABI info - done -- Check for working CUDA compiler: /opt/cuda/bin/nvcc - skipped -- Detecting CUDA compile features -- Detecting CUDA compile features - done -- Looking for CL_VERSION_2_2 -- Looking for CL_VERSION_2_2 - found -- Found OpenCL: /usr/lib64/libOpenCL.so (found version "2.2") -- Configuring done -- Generating done -- Build files have been written to: /home/miki/del/ygg-brute/build $ LC_ALL=en_US.UTF-8 cmake --build build --verbose /usr/bin/cmake -S/home/miki/del/ygg-brute -B/home/miki/del/ygg-brute/build --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /home/miki/del/ygg-brute/build/CMakeFiles /home/miki/del/ygg-brute/build//CMakeFiles/progress.marks /usr/bin/gmake -f CMakeFiles/Makefile2 all gmake[1]: Entering directory '/home/miki/del/ygg-brute/build' /usr/bin/gmake -f CMakeFiles/cuda-engine.dir/build.make CMakeFiles/cuda-engine.dir/depend gmake[2]: Entering directory '/home/miki/del/ygg-brute/build' cd /home/miki/del/ygg-brute/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/miki/del/ygg-brute /home/miki/del/ygg-brute /home/miki/del/ygg-brute/build /home/miki/del/ygg-brute/build /home/miki/del/ygg-brute/build/CMakeFile s/cuda-engine.dir/DependInfo.cmake --color= Dependee "/home/miki/del/ygg-brute/build/CMakeFiles/cuda-engine.dir/DependInfo.cmake" is newer than depender "/home/miki/del/ygg-brute/build/CMakeFiles/cuda-engine.dir/depend.internal". Dependee "/home/miki/del/ygg-brute/build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/miki/del/ygg-brute/build/CMakeFiles/cuda-engine.dir/depend.internal". Scanning dependencies of target cuda-engine gmake[2]: Leaving directory '/home/miki/del/ygg-brute/build' /usr/bin/gmake -f CMakeFiles/cuda-engine.dir/build.make CMakeFiles/cuda-engine.dir/build gmake[2]: Entering directory '/home/miki/del/ygg-brute/build' [ 8%] Building CUDA object CMakeFiles/cuda-engine.dir/src/cuda/engine.cu.o /opt/cuda/bin/nvcc -forward-unknown-to-host-compiler -I/home/miki/del/ygg-brute/src -I/home/miki/del/ygg-brute/third_party -O3 -Xptxas -O4 -Xptxas -v --generate-code=arch=compute_75,code=[compute_75,sm_75] -std=c++17 -x cu -c /home/miki/ del/ygg-brute/src/cuda/engine.cu -o CMakeFiles/cuda-engine.dir/src/cuda/engine.cu.o In file included from /home/miki/del/ygg-brute/src/cuda/engine.cu:27: /home/miki/del/ygg-brute/src/generic/scalar_mul.h:36:74: warning: backslash-newline at end of file 36 | #define load_fold_table(DST, SRC) \ | /home/miki/del/ygg-brute/src/cuda/engine.cu(54): warning: variable "cuda::<unnamed>::l_3" was declared but never referenced /home/miki/del/ygg-brute/src/cuda/engine.cu(60): warning: variable "cuda::<unnamed>::l_3_lb" was declared but never referenced /home/miki/del/ygg-brute/src/cuda/engine.cu(96): warning: function "cuda::<unnamed>::dbg_point(const char *, const AffineNielsPoint &)" was declared but never referenced /home/miki/del/ygg-brute/src/cuda/engine.cu(86): warning: function "cuda::<unnamed>::dbg_point(const char *, const EdwardsPoint &)" was declared but never referenced ptxas info : 0 bytes gmem, 1024 bytes cmem[3] ptxas info : Compiling entry function 'compute_address_kernel_v1' for 'sm_75' ptxas info : Function properties for compute_address_kernel_v1 32 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 94 registers, 376 bytes cmem[0] ptxas info : Compiling entry function 'batch_invert_kernel_2' for 'sm_75' ptxas info : Function properties for batch_invert_kernel_2 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 64 registers, 376 bytes cmem[0] ptxas info : Compiling entry function 'batch_invert_kernel_1' for 'sm_75' ptxas info : Function properties for batch_invert_kernel_1 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 72 registers, 368 bytes cmem[0] ptxas info : Compiling entry function 'batch_invert_kernel_0' for 'sm_75' ptxas info : Function properties for batch_invert_kernel_0 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 62 registers, 376 bytes cmem[0] ptxas info : Compiling entry function 'compute_uv_kernel_1' for 'sm_75' ptxas info : Function properties for compute_uv_kernel_1 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 64 registers, 64 bytes smem, 424 bytes cmem[0] ptxas info : Compiling entry function 'compute_uv_kernel_0' for 'sm_75' ptxas info : Function properties for compute_uv_kernel_0 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 72 registers, 32 bytes smem, 392 bytes cmem[0] ptxas info : Compiling entry function 'compute_midstate_kernel_1' for 'sm_75' ptxas info : Function properties for compute_midstate_kernel_1 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 117 registers, 384 bytes cmem[0] ptxas info : Compiling entry function 'compute_midstate_kernel_0' for 'sm_75' ptxas info : Function properties for compute_midstate_kernel_0 64 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 124 registers, 24576 bytes smem, 408 bytes cmem[0] ptxas info : Compiling entry function 'precompute_addends_kernel' for 'sm_75' ptxas info : Function properties for precompute_addends_kernel 32 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 123 registers, 24576 bytes smem, 400 bytes cmem[0] In file included from /home/miki/del/ygg-brute/src/cuda/engine.cu:27: [28/98] /home/miki/del/ygg-brute/src/generic/scalar_mul.h:36:74: warning: backslash-newline at end of file 36 | #define load_fold_table(DST, SRC) \ | /home/miki/del/ygg-brute/src/cuda/engine.cu: In member function ‘virtual void cuda::_GLOBAL__N__41_tmpxft_0009749c_00000000_7_engine_cpp1_ii_d855fbfe::CudaEngine::print_info()’: /home/miki/del/ygg-brute/src/cuda/engine.cu:420:8: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘std::vector<cudaDeviceProp>::size_type’ {aka ‘long unsigned int’} [-Wformat=] 420 | printf("CUDA: %d devices\n", props.size()); | ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ | | | std::vector<cudaDeviceProp>::size_type {aka long unsigned int} /home/miki/del/ygg-brute/src/cuda/engine.cu:424:8: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=] 424 | printf("Device #%d (%s)\n", i, prop.name); | ^ ~~~~~~~~~~~~~~ ~ | | | size_t {aka long unsigned int} [ 16%] Linking CUDA static library libcuda-engine.a /usr/bin/cmake -P CMakeFiles/cuda-engine.dir/cmake_clean_target.cmake /usr/bin/cmake -E cmake_link_script CMakeFiles/cuda-engine.dir/link.txt --verbose=1 /usr/bin/ar qc libcuda-engine.a CMakeFiles/cuda-engine.dir/src/cuda/engine.cu.o /usr/bin/ranlib libcuda-engine.a gmake[2]: Leaving directory '/home/miki/del/ygg-brute/build' [ 16%] Built target cuda-engine /usr/bin/gmake -f CMakeFiles/cuda-generator-test.dir/build.make CMakeFiles/cuda-generator-test.dir/depend gmake[2]: Entering directory '/home/miki/del/ygg-brute/build' cd /home/miki/del/ygg-brute/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/miki/del/ygg-brute /home/miki/del/ygg-brute /home/miki/del/ygg-brute/build /home/miki/del/ygg-brute/build /home/miki/del/ygg-brute/build/CMakeFile s/cuda-generator-test.dir/DependInfo.cmake --color= Dependee "/home/miki/del/ygg-brute/build/CMakeFiles/cuda-generator-test.dir/DependInfo.cmake" is newer than depender "/home/miki/del/ygg-brute/build/CMakeFiles/cuda-generator-test.dir/depend.internal". Dependee "/home/miki/del/ygg-brute/build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/miki/del/ygg-brute/build/CMakeFiles/cuda-generator-test.dir/depend.internal". Scanning dependencies of target cuda-generator-test gmake[2]: Leaving directory '/home/miki/del/ygg-brute/build' /usr/bin/gmake -f CMakeFiles/cuda-generator-test.dir/build.make CMakeFiles/cuda-generator-test.dir/build gmake[2]: Entering directory '/home/miki/del/ygg-brute/build' [ 25%] Building CXX object CMakeFiles/cuda-generator-test.dir/test/cuda_generator_test.cpp.o /usr/bin/c++ -I/home/miki/del/ygg-brute/src -I/home/miki/del/ygg-brute/test -O3 -std=gnu++17 -o CMakeFiles/cuda-generator-test.dir/test/cuda_generator_test.cpp.o -c /home/miki/del/ygg-brute/test/cuda_generator_test.cpp [ 33%] Linking CXX executable cuda-generator-test /usr/bin/cmake -E cmake_link_script CMakeFiles/cuda-generator-test.dir/link.txt --verbose=1 /usr/bin/c++ -O3 -lsodium CMakeFiles/cuda-generator-test.dir/test/cuda_generator_test.cpp.o -o cuda-generator-test -L/opt/cuda/targets/x86_64-linux/lib/stubs -L/opt/cuda/targets/x86_64-linux/lib libcuda-engine.a -lcudadevrt -lcudart_ static -lrt -lpthread -ldl gmake[2]: Leaving directory '/home/miki/del/ygg-brute/build' [ 33%] Built target cuda-generator-test /usr/bin/gmake -f CMakeFiles/opencl-kernel.dir/build.make CMakeFiles/opencl-kernel.dir/depend gmake[2]: Entering directory '/home/miki/del/ygg-brute/build' cd /home/miki/del/ygg-brute/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/miki/del/ygg-brute /home/miki/del/ygg-brute /home/miki/del/ygg-brute/build /home/miki/del/ygg-brute/build /home/miki/del/ygg-brute/build/CMakeFile s/opencl-kernel.dir/DependInfo.cmake --color= Dependee "/home/miki/del/ygg-brute/build/CMakeFiles/opencl-kernel.dir/DependInfo.cmake" is newer than depender "/home/miki/del/ygg-brute/build/CMakeFiles/opencl-kernel.dir/depend.internal". Dependee "/home/miki/del/ygg-brute/build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/miki/del/ygg-brute/build/CMakeFiles/opencl-kernel.dir/depend.internal". Scanning dependencies of target opencl-kernel gmake[2]: Leaving directory '/home/miki/del/ygg-brute/build' /usr/bin/gmake -f CMakeFiles/opencl-kernel.dir/build.make CMakeFiles/opencl-kernel.dir/build gmake[2]: Entering directory '/home/miki/del/ygg-brute/build' [ 41%] Generating preprocessed kernel /home/miki/del/ygg-brute/build/kernel.cl cpp -I /home/miki/del/ygg-brute/src -I /home/miki/del/ygg-brute/src/opencl/kernel /home/miki/del/ygg-brute/src/opencl/kernel/kernel.cl -o /home/miki/del/ygg-brute/build/kernel.cl In file included from /home/miki/del/ygg-brute/src/opencl/kernel/kernel.cl:17: /home/miki/del/ygg-brute/src/generic/scalar_mul.h:36:74: warning: backslash-newline at end of file 36 | #define load_fold_table(DST, SRC) \ | [ 50%] Generating kernel.cl.h xxd -i kernel.cl /home/miki/del/ygg-brute/build/kernel.cl.h gmake[2]: Leaving directory '/home/miki/del/ygg-brute/build' [ 50%] Built target opencl-kernel /usr/bin/gmake -f CMakeFiles/opencl-engine.dir/build.make CMakeFiles/opencl-engine.dir/depend gmake[2]: Entering directory '/home/miki/del/ygg-brute/build' cd /home/miki/del/ygg-brute/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/miki/del/ygg-brute /home/miki/del/ygg-brute /home/miki/del/ygg-brute/build /home/miki/del/ygg-brute/build /home/miki/del/ygg-brute/build/CMakeFile s/opencl-engine.dir/DependInfo.cmake --color= Dependee "/home/miki/del/ygg-brute/build/CMakeFiles/opencl-engine.dir/DependInfo.cmake" is newer than depender "/home/miki/del/ygg-brute/build/CMakeFiles/opencl-engine.dir/depend.internal". Dependee "/home/miki/del/ygg-brute/build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/miki/del/ygg-brute/build/CMakeFiles/opencl-engine.dir/depend.internal". Scanning dependencies of target opencl-engine gmake[2]: Leaving directory '/home/miki/del/ygg-brute/build' /usr/bin/gmake -f CMakeFiles/opencl-engine.dir/build.make CMakeFiles/opencl-engine.dir/build gmake[2]: Entering directory '/home/miki/del/ygg-brute/build' [ 58%] Building CXX object CMakeFiles/opencl-engine.dir/src/opencl/engine.cpp.o /usr/bin/c++ -I/home/miki/del/ygg-brute/src -I/home/miki/del/ygg-brute/third_party -I/home/miki/del/ygg-brute/build -O3 -std=gnu++17 -o CMakeFiles/opencl-engine.dir/src/opencl/engine.cpp.o -c /home/miki/del/ygg-brute/src/opencl/engine.cpp In file included from /home/miki/del/ygg-brute/src/opencl/engine.cpp:13: /home/miki/del/ygg-brute/src/opencl/util.hpp:9:10: fatal error: CL/cl.hpp: No such file or directory 9 | #include <CL/cl.hpp> | ^~~~~~~~~~~ compilation terminated. gmake[2]: *** [CMakeFiles/opencl-engine.dir/build.make:82: CMakeFiles/opencl-engine.dir/src/opencl/engine.cpp.o] Error 1 gmake[2]: Leaving directory '/home/miki/del/ygg-brute/build' gmake[1]: *** [CMakeFiles/Makefile2:131: CMakeFiles/opencl-engine.dir/all] Error 2 gmake[1]: Leaving directory '/home/miki/del/ygg-brute/build' gmake: *** [Makefile:114: all] Error 2 ```
Bogdan107 kommentierte vor 3 Jahren
Ersteller
$ locate /cl.hpp
/opt/cuda/targets/x86_64-linux/include/CL/cl.hpp
/usr/include/boost/compute/cl.hpp

$ equery b /opt/cuda/targets/x86_64-linux/include/CL/cl.hpp
 * Searching for /opt/cuda/targets/x86_64-linux/include/CL/cl.hpp ... 
dev-util/nvidia-cuda-toolkit-11.2.0-r3 (/opt/cuda/targets/x86_64-linux/include/CL/cl.hpp)

$ equery b /usr/include/boost/compute/cl.hpp
 * Searching for /usr/include/boost/compute/cl.hpp ... 
dev-libs/boost-1.75.0 (/usr/include/boost/compute/cl.hpp)
``` $ locate /cl.hpp /opt/cuda/targets/x86_64-linux/include/CL/cl.hpp /usr/include/boost/compute/cl.hpp $ equery b /opt/cuda/targets/x86_64-linux/include/CL/cl.hpp * Searching for /opt/cuda/targets/x86_64-linux/include/CL/cl.hpp ... dev-util/nvidia-cuda-toolkit-11.2.0-r3 (/opt/cuda/targets/x86_64-linux/include/CL/cl.hpp) $ equery b /usr/include/boost/compute/cl.hpp * Searching for /usr/include/boost/compute/cl.hpp ... dev-libs/boost-1.75.0 (/usr/include/boost/compute/cl.hpp) ```
Bogdan107 kommentierte vor 3 Jahren
Ersteller

If I add include_directories("/opt/cuda/targets/x86_64-linux/include") to CMakeLists.txt, then compilation finished successful.

If I add ```include_directories("/opt/cuda/targets/x86_64-linux/include")``` to CMakeLists.txt, then compilation finished successful.
frodo_buggins kommentierte vor 3 Jahren
Besitzer

Thank you for the information! The problem seems to be that OpenCL C++ headers usually are in a separate package (on Gentoo it's dev-libs/clhpp). Better cmake error message and a note in README are added. Could you try the solution and tell if it works?

Thank you for the information! The problem seems to be that OpenCL C++ headers usually are in a separate package (on Gentoo it's `dev-libs/clhpp`). Better cmake error message and a note in README are added. Could you try the solution and tell if it works?
Bogdan107 kommentierte vor 3 Jahren
Ersteller

clhpp package does not contain CL/cl.hpp, required by ygg-brute.

After commit #dfba56d260, ygg-brute reauire CL/opencl.hpp. But dev-libs/clhpp does not contain this file too, and ygg-brute fails on configure stage (cmake -H. -Bbuild -DCMAKE_CUDA_ARCHITECTURES=75).

$ equery f dev-libs/clhpp
 * Searching for clhpp in dev-libs ...
 * Contents of dev-libs/clhpp-2.0.12:
/usr
/usr/include
/usr/include/CL
/usr/include/CL/cl2.hpp
/usr/share
/usr/share/doc
/usr/share/doc/clhpp-2.0.12
/usr/share/doc/clhpp-2.0.12/README.md.bz2

With patch in commit #dfba56d260, ygg-brute can not be configuread and compiled.

May you add tag, like "v0.1", to #ec13c30940 commit?

clhpp package does not contain CL/cl.hpp, required by ygg-brute. After commit #dfba56d260, ygg-brute reauire CL/opencl.hpp. But dev-libs/clhpp does not contain this file too, and ygg-brute fails on configure stage (```cmake -H. -Bbuild -DCMAKE_CUDA_ARCHITECTURES=75```). ``` $ equery f dev-libs/clhpp * Searching for clhpp in dev-libs ... * Contents of dev-libs/clhpp-2.0.12: /usr /usr/include /usr/include/CL /usr/include/CL/cl2.hpp /usr/share /usr/share/doc /usr/share/doc/clhpp-2.0.12 /usr/share/doc/clhpp-2.0.12/README.md.bz2 ``` With patch in commit #dfba56d260, ygg-brute can not be configuread and compiled. May you add tag, like "v0.1", to #ec13c30940 commit?
frodo_buggins kommentierte vor 3 Jahren
Besitzer

Switched from CL/opencl.hpp to CL/cl2.hpp, added info about backend selection (it's possible to disable cuda or opencl at build time) to README, added 0.1 tag to #c13c30940.

Switched from `CL/opencl.hpp` to `CL/cl2.hpp`, added info about backend selection (it's possible to disable cuda or opencl at build time) to README, added 0.1 tag to #c13c30940.
Anmelden, um an der Diskussion teilzunehmen.
Kein Label
Kein Meilenstein
Niemand zuständig
2 Beteiligte
Laden…
Abbrechen
Speichern
Hier gibt es bis jetzt noch keinen Inhalt.