曾品翔
曾品翔

Reputation: 15

Failed to build "cutorch" when install cutorch in luarocks



luarocks install cutorch

The following is my error content:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: CUDA_cublas_device_LIBRARY (ADVANCED) linked by target "THC" in directory /tmp/luarocks_cutorch-scm-1-8576/cutorch/lib/THC

Error: Build error: Failed building.

P.S. I have solved the problem of not being able to generate "Error generating file" through TORCH_NVCC_FLAGS="-D__CUDA_NO_HALF_OPERATORS__" ./install.sh and ./update

Upvotes: 0

Views: 299

Answers (1)

曾品翔
曾品翔

Reputation: 15

export TORCH_NVCC_FLAGS="-D__CUDA_NO_HALF_OPERATORS__" && luarocks install cutorch

Upvotes: 0

Related Questions