This project is archived. Its data is read-only. This project is read-only.
CUDA version installation
TNL installation failure. CUDA: 10.1 NVIDIA driver: 418.43 cmake: 3.14.0 gcc: 7.3.0 error: ``` /home/maty/Documents/tnl/src/TNL/Atomic.h: In instantiation of ‘T TNL::Atomic<T, TNL::Devices::Cuda>::load() const [with T = int]’: /home/maty/Documents/tnl/src/TNL/Atomic.h:160:12: required from ‘TNL::Atomic<T, TNL::Devices::Cuda>::operator T() const [with T = int]’ /home/maty/Documents/tnl/src/TNL/Matrices/DistributedSpMV.h:117:25: required from ‘void TNL::Matrices::DistributedSpMV<Matrix, Communicator>::updateCommunicationPattern(const MatrixType&, TNL::Matrices$ /tmp/tmpxft_000024e2_00000000-5_tnl-benchmark-distributed-spmv.cudafe1.stub.c:34:531: required from here /home/maty/Documents/tnl/src/TNL/Atomic.h:154:17: error: passing ‘const TNL::Atomic<int, TNL::Devices::Cuda>’ as ‘this’ argument discards qualifiers [-fpermissive] return ((Atomic*)this)->fetch_add( 0 ); ~~~~~~~~~^~~ /home/maty/Documents/tnl/src/TNL/Atomic.h:202:3: note: in call to ‘T TNL::Atomic<T, TNL::Devices::Cuda>::fetch_add(T) [with T = int]’ T fetch_add( T arg ) ^~~~~~~~~ CMake Error at tnl-benchmark-distributed-spmv-cuda_generated_tnl-benchmark-distributed-spmv.cu.o.Debug.cmake:279 (message): Error generating file /home/maty/Documents/tnl/Debug/src/Benchmarks/DistSpMV/CMakeFiles/tnl-benchmark-distributed-spmv-cuda.dir//./tnl-benchmark-distributed-spmv-cuda_generated_tnl-benchmark-distributed-spmv.cu.o src/Benchmarks/DistSpMV/CMakeFiles/tnl-benchmark-distributed-spmv-cuda.dir/build.make:543: recipe for target 'src/Benchmarks/DistSpMV/CMakeFiles/tnl-benchmark-distributed-spmv-cuda.dir/tnl-benchmark-dist$ make[2]: *** [src/Benchmarks/DistSpMV/CMakeFiles/tnl-benchmark-distributed-spmv-cuda.dir/tnl-benchmark-distributed-spmv-cuda_generated_tnl-benchmark-distributed-spmv.cu.o] Error 1 CMakeFiles/Makefile2:2676: recipe for target 'src/Benchmarks/DistSpMV/CMakeFiles/tnl-benchmark-distributed-spmv-cuda.dir/all' failed make[1]: *** [src/Benchmarks/DistSpMV/CMakeFiles/tnl-benchmark-distributed-spmv-cuda.dir/all] Error 2 ``` Originally Atomic.h:153 with same error but code: return const_cast<Atomic*>(this)->fetch_add( 0 );
issue