cmake 设置变量未添加/未使用
cmake set variable not added / not used
我缺少安装 cutorch 的变量 CUDA_TOOLKIT_ROOT_DIR
。
虽然我正在做 cmake -DCUDA_TOOLKIT_ROOT_DIR="/usr/local/cuda"
当我尝试使用 luarocks install cutorch
安装时它仍然缺少变量。
我试图清空缓存。然后在重建时说:
CMake Warning:
Manually-specified variables were not used by the project:
CUDA_TOOLKIT_ROOT_DIR
-- Build files have been written to: /Users/vinni/torch
如何让变量保留下来?
我的情况是 /usr/local/coda
文件夹不为空,但缺少大量文件。我重新安装了 cuda,现在一切正常。无需重写任何变量。
我缺少安装 cutorch 的变量 CUDA_TOOLKIT_ROOT_DIR
。
虽然我正在做 cmake -DCUDA_TOOLKIT_ROOT_DIR="/usr/local/cuda"
当我尝试使用 luarocks install cutorch
安装时它仍然缺少变量。
我试图清空缓存。然后在重建时说:
CMake Warning:
Manually-specified variables were not used by the project:
CUDA_TOOLKIT_ROOT_DIR
-- Build files have been written to: /Users/vinni/torch
如何让变量保留下来?
我的情况是 /usr/local/coda
文件夹不为空,但缺少大量文件。我重新安装了 cuda,现在一切正常。无需重写任何变量。