Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NP_TMcode
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Giacomo Mulas
NP_TMcode
Commits
d2f839df
Commit
d2f839df
authored
7 months ago
by
Giovanni La Mura
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build/configure
+12
-4
12 additions, 4 deletions
build/configure
build/configure.ac
+6
-2
6 additions, 2 deletions
build/configure.ac
with
18 additions
and
6 deletions
build/configure
+
12
−
4
View file @
d2f839df
...
@@ -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=$?
...
...
This diff is collapsed.
Click to expand it.
build/configure.ac
+
6
−
2
View file @
d2f839df
...
@@ -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=$?
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment