Skip to content
Snippets Groups Projects
Commit d2f839df authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Create CUDA default variables only if the folders are detected.

parent 280045af
No related branches found
No related tags found
No related merge requests found
...@@ -25154,8 +25154,12 @@ then : ...@@ -25154,8 +25154,12 @@ then :
export -p | grep CUDA export -p | grep CUDA
CUDA_DEF=$? CUDA_DEF=$?
if test "x$CUDA_DEF" != "x0"; then if test "x$CUDA_DEF" != "x0"; then
export CUDA_LIB=/usr/local/cuda/targets/x86_64-linux/lib if test -d "/usr/local/cuda/targets/x86_64-linux/lib"; then
export CUDA_INCLUDE=/usr/local/cuda/targets/x86_64-linux/include export CUDA_LIB="/usr/local/cuda/targets/x86_64-linux/lib"
fi
if test -d "/usr/local/cuda/targets/x86_64-linux/lib"; then
export CUDA_INCLUDE="/usr/local/cuda/targets/x86_64-linux/include"
fi
fi fi
export -p | grep MAGMA export -p | grep MAGMA
MAGMA_DEF=$? MAGMA_DEF=$?
...@@ -25208,8 +25212,12 @@ else case e in #( ...@@ -25208,8 +25212,12 @@ else case e in #(
export -p | grep CUDA export -p | grep CUDA
CUDA_DEF=$? CUDA_DEF=$?
if test "x$CUDA_DEF" != "x0"; then if test "x$CUDA_DEF" != "x0"; then
export CUDA_LIB=/usr/local/cuda/targets/x86_64-linux/lib if test -d "/usr/local/cuda/targets/x86_64-linux/lib"; then
export CUDA_INCLUDE=/usr/local/cuda/targets/x86_64-linux/include export CUDA_LIB="/usr/local/cuda/targets/x86_64-linux/lib"
fi
if test -d "/usr/local/cuda/targets/x86_64-linux/lib"; then
export CUDA_INCLUDE="/usr/local/cuda/targets/x86_64-linux/include"
fi
fi fi
export -p | grep MAGMA export -p | grep MAGMA
MAGMA_DEF=$? MAGMA_DEF=$?
......
...@@ -42,8 +42,12 @@ m4_define( ...@@ -42,8 +42,12 @@ m4_define(
export -p | grep CUDA export -p | grep CUDA
CUDA_DEF=$? CUDA_DEF=$?
if test "x$CUDA_DEF" != "x0"; then if test "x$CUDA_DEF" != "x0"; then
export CUDA_LIB=/usr/local/cuda/targets/x86_64-linux/lib if test -d "/usr/local/cuda/targets/x86_64-linux/lib"; then
export CUDA_INCLUDE=/usr/local/cuda/targets/x86_64-linux/include export CUDA_LIB="/usr/local/cuda/targets/x86_64-linux/lib"
fi
if test -d "/usr/local/cuda/targets/x86_64-linux/lib"; then
export CUDA_INCLUDE="/usr/local/cuda/targets/x86_64-linux/include"
fi
fi fi
export -p | grep MAGMA export -p | grep MAGMA
MAGMA_DEF=$? MAGMA_DEF=$?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment