Torch 7 with CUDA 10 on Ubuntu

Torch 7 fails with CUDA 10 by producing below error: /build/torch7-cutorch-git/src/torch7-cutorch-git/lib/THC/THCAtomics.cuh(97): error: cannot overload functions distinguished by return type alone 1 error detected in the compilation of "/run/user/1000/tmpxft_00007438_00000000-4_THCTensorIndex.cpp4.ii". CMake Error at THC_generated_THCTensorIndex.cu.o.Release.cmake:279 (message): Error generating file /build/torch7-cutorch-git/src/torch7-cutorch-git/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorIndex.cu.o It has two issues: cmake/3.6/Modules/FindCUDA.cmake is outdated.atomicAdd(__half *address, __half val) is defined in /usr/local/cuda/include/cuda_fp16.h (duplicated). Step 1: Install... Continue Reading →

Create a free website or blog at WordPress.com.

Up ↑