diff options
author | cassia233 <cassia02200059@gmail.com> | 2016-12-20 16:16:57 +0300 |
---|---|---|
committer | cassia233 <cassia02200059@gmail.com> | 2016-12-20 16:16:57 +0300 |
commit | d3e8a3c94edeb51cbbee12bd6d260e7a1241699c (patch) | |
tree | f5c2ff4bc0311dba85006655a604989f52f29a9c | |
parent | 5633c24e2443dbf873f9ac51fb58700059b11f2c (diff) |
fix Archlinux install error
-rwxr-xr-x | install.sh | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -51,6 +51,14 @@ if [[ `uname` == "Darwin" ]]; then export CC=clang export CXX=clang++ fi +# If we're on Arch linux, use cuda's gcc +if [[ `uname -a` == *"ARCH"* ]]; then + export CC=/opt/cuda/bin/gcc + export CXX=/opt/cuda/bin/g++ + if [[ -f /opt/cuda/bin/nvcc ]]; then { + path_to_nvcc=/opt/cuda/bin/nvcc + } fi +fi echo "Installing Lua version: ${TORCH_LUA_VERSION}" mkdir -p install |