Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_pdata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_pdata
Commits
e8f0531a
Commit
e8f0531a
authored
8 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Adding support for SuiteSparse installation with intel compiler
parent
bbe3769a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
script/detect_gcc
+1
-1
1 addition, 1 deletion
script/detect_gcc
script/install_SUITESPARSE.sh
+13
-4
13 additions, 4 deletions
script/install_SUITESPARSE.sh
script/show_solutions
+1
-0
1 addition, 0 deletions
script/show_solutions
with
15 additions
and
5 deletions
script/detect_gcc
+
1
−
1
View file @
e8f0531a
...
...
@@ -161,7 +161,7 @@ function detect_compiler()
commands[0]
=
"icpc"
commands[1]
=
"g++"
possible_solutions
"
${
commands
[@]
}
"
dgc_compiler
=
possible_solutions_
ret
dgc_compiler
=
$
possible_solutions_
command
dgc_ret
=
1
CXX
=
$dgc_compiler
fi
...
...
This diff is collapsed.
Click to expand it.
script/install_SUITESPARSE.sh
+
13
−
4
View file @
e8f0531a
...
...
@@ -40,10 +40,19 @@ if [ x"$platform" = x"osx" ]; then
else
# Installation for linux
sed
-i
"/INSTALL_LIB
\s
=
\s\/
usr
\/
local
\/
lib/c
\I
NSTALL_LIB =
$1
\/
SUITESPARSE
\/
lib"
SuiteSparse_config/SuiteSparse_config.mk
sed
-i
"/INSTALL_INCLUDE
\s
=
\s\/
usr
\/
local
\/
include/c
\I
NSTALL_INCLUDE =
$1
\/
SUITESPARSE
\/
include"
SuiteSparse_config/SuiteSparse_config.mk
sed
-i
"/
\s
LAPACK
\s
=
\s
-llapack/c
\L
APACK = "
SuiteSparse_config/SuiteSparse_config.mk
sed
-i
"/
\s
BLAS
\s
=
\s\-
lopenblas/c
\B
LAS = -L
$1
/OPENBLAS/lib -lopenblas -lpthread"
SuiteSparse_config/SuiteSparse_config.mk
if
[
x
"
$CXX
"
==
x
"icpc"
]
;
then
export
LD_LIBRARY_PATH
=
"
$LD_LIBRARY_PATH
:/
$1
/OPENBLAS/lib"
sed
-i
"/INSTALL_LIB
\s
=
\s\/
usr
\/
local
\/
lib/c
\I
NSTALL_LIB =
$1
\/
SUITESPARSE
\/
lib"
SuiteSparse_config/SuiteSparse_config.mk
sed
-i
"/INSTALL_INCLUDE
\s
=
\s\/
usr
\/
local
\/
include/c
\I
NSTALL_INCLUDE =
$1
\/
SUITESPARSE
\/
include"
SuiteSparse_config/SuiteSparse_config.mk
sed
-i
"/
\s
LAPACK
\s
=
\s
-llapack/c
\L
APACK = "
SuiteSparse_config/SuiteSparse_config.mk
sed
-i
"/
\s
BLAS
\s
=
\s\-
lopenblas/c
\B
LAS = -L
$1
/OPENBLAS/lib -lopenblas -lpthread"
SuiteSparse_config/SuiteSparse_config.mk
else
sed
-i
"/
\s
LIB
\s
=
\s
-lm
\s
-lrt/c
\L
IB
\s
=
\s
-shared-intel
\s
-lm
\s
-lrt
\s
-lifcore"
SuiteSparse_config/SuiteSparse_config.mk
sed
-i
"/INSTALL_LIB
\s
=
\s\/
usr
\/
local
\/
lib/c
\I
NSTALL_LIB =
$1
\/
SUITESPARSE
\/
lib"
SuiteSparse_config/SuiteSparse_config.mk
sed
-i
"/INSTALL_INCLUDE
\s
=
\s\/
usr
\/
local
\/
include/c
\I
NSTALL_INCLUDE =
$1
\/
SUITESPARSE
\/
include"
SuiteSparse_config/SuiteSparse_config.mk
sed
-i
"/
\s
LAPACK
\s
=
\s
-llapack/c
\L
APACK = "
SuiteSparse_config/SuiteSparse_config.mk
sed
-i
"/
\s
BLAS
\s
=
\s\-
lopenblas/c
\B
LAS = -L
$1
/OPENBLAS/lib -lopenblas -lpthread"
SuiteSparse_config/SuiteSparse_config.mk
fi
fi
...
...
This diff is collapsed.
Click to expand it.
script/show_solutions
+
1
−
0
View file @
e8f0531a
...
...
@@ -32,5 +32,6 @@ function possible_solutions {
else
eval
${
commands
[
$possible_solutions_ret
]
}
fi
possible_solutions_command
=
${
commands
[
$possible_solutions_ret
]
}
}
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