mirror of
https://github.com/marian-nmt/marian.git
synced 2024-11-03 20:13:47 +03:00
More helpful error message when CUDA libraries cannot be found.
This commit is contained in:
parent
2111c28036
commit
d1ed2c2506
@ -216,7 +216,14 @@ if(CUDA_FOUND)
|
||||
endif()
|
||||
|
||||
else(CUDA_FOUND)
|
||||
message(FATAL_ERROR "CUDA has not been found, set -DCOMPILE_CUDA=off to avoid this check and to compile the CPU version only")
|
||||
message("
|
||||
Cannot find suitable CUDA libraries. Specify the path explicitly with
|
||||
-DCUDA_TOOLKIT_ROOT_DIR=/path/to/appropriate/cuda/installation
|
||||
(hint: try /usr/local/$(readlink /usr/local/cuda))
|
||||
OR compile the CPU-only version of Marian with
|
||||
-DCOMPILE_CUDA=off
|
||||
")
|
||||
message(FATAL_ERROR "FATAL ERROR: No suitable CUDA library found.")
|
||||
endif(CUDA_FOUND)
|
||||
|
||||
else(COMPILE_CUDA)
|
||||
|
Loading…
Reference in New Issue
Block a user