Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/distro.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcassia233 <cassia02200059@gmail.com>2016-12-20 16:16:57 +0300
committercassia233 <cassia02200059@gmail.com>2016-12-20 16:16:57 +0300
commitd3e8a3c94edeb51cbbee12bd6d260e7a1241699c (patch)
treef5c2ff4bc0311dba85006655a604989f52f29a9c
parent5633c24e2443dbf873f9ac51fb58700059b11f2c (diff)
fix Archlinux install error
-rwxr-xr-xinstall.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index bf6d29f..3f82874 100755
--- a/install.sh
+++ b/install.sh
@@ -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