Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
TRACY3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PA
Optics
TRACY3
Commits
930b4e32
Commit
930b4e32
authored
1 year ago
by
BLANCO-GARCIA
Browse files
Options
Downloads
Patches
Plain Diff
moving to gcc for compatibility with matlab
parent
a2a09ca9
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
make_for_tracy3.sh
+32
-11
32 additions, 11 deletions
make_for_tracy3.sh
with
32 additions
and
11 deletions
make_for_tracy3.sh
+
32
−
11
View file @
930b4e32
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
# not sh since on Ubuntu sh is not bash
# not sh since on Ubuntu sh is not bash
set
-x
# for debugging
#
set -x # for debugging
if
[
$#
-ne
1
]
if
[
$#
-ne
1
]
then
# affiche l'usage
then
# affiche l'usage
...
@@ -30,6 +30,8 @@ cd "$dir/$TRACY"
...
@@ -30,6 +30,8 @@ cd "$dir/$TRACY"
rm
-f
autom4te.cache/
*
rm
-f
autom4te.cache/
*
rm
-rf
aclocal.m4
rm
-rf
aclocal.m4
### 2023jun01 sometimes distclean does not work
# try to comment distclean, run it once and then uncomment
make distclean
make distclean
# Clean everything and call autoreconf
# Clean everything and call autoreconf
...
@@ -42,7 +44,7 @@ fi
...
@@ -42,7 +44,7 @@ fi
#dirName=/home/sources/physmach/nadolski/codes
#dirName=/home/sources/physmach/nadolski/codes
#dirName=/usr/local/applis_pa/codes/tracy/
#dirName=/usr/local/applis_pa/codes/tracy/
dirName
=
/nfs/tegile/work/sources/physmach/blanco-garcia/codes
#
dirName=/nfs/tegile/work/sources/physmach/blanco-garcia/codes
if
[
$1
==
"opt"
]
if
[
$1
==
"opt"
]
then
then
...
@@ -52,11 +54,30 @@ fi
...
@@ -52,11 +54,30 @@ fi
if
[
$1
==
"mpi"
]
if
[
$1
==
"mpi"
]
then
then
## 2023jun14 orblancog. I move to gcc because icc libraries are incompatible with matlab
# https://jira.synchrotron-soleil.fr/jira/browse/CTRLDESK-21799
# CC=icc CXX=icpc LDFLAGS="-L$dirName/nrecipes/recipes_c-ansi/lib/ -L/opt/intel/parallel_studio_xe_2017_update2/compilers_and_libraries_2017.2.174/linux/mpi/intel64/lib -lmpi" ./configure --enable-mpi-exec --prefix=$dir/$TRACY/tracy FFLAGS="-O2 -Wall -fbounds-check" CFLAGS="-O2 -Wall -fno-implicit-templates" CXXFLAGS="-O2 -Wall -fno-implicit-templates"
# CC=icc CXX=icpc LDFLAGS="-L$dirName/nrecipes/recipes_c-ansi/lib/ -L/opt/intel/parallel_studio_xe_2017_update2/compilers_and_libraries_2017.2.174/linux/mpi/intel64/lib -lmpi" ./configure --enable-mpi-exec --prefix=$dir/$TRACY/tracy FFLAGS="-O2 -Wall -fbounds-check" CFLAGS="-O2 -Wall -fno-implicit-templates" CXXFLAGS="-O2 -Wall -fno-implicit-templates"
CC
=
icc
CXX
=
icpc
LDFLAGS
=
"-L
$dirName
/nrecipes/recipes_c-ansi/lib/ -L/opt/intel/parallel_studio_xe_2017_update2/compilers_and_libraries_2017.2.174/linux/mpi/intel64/lib -lmpi"
./configure
--enable-mpi-exec
--prefix
=
$dir
/
$TRACY
/tracy
FFLAGS
=
"-O2 -Wall -fbounds-check"
CFLAGS
=
"-O2 -ansi -Wall -fno-implicit-templates"
CXXFLAGS
=
"-O2 -ansi -Wall -fno-implicit-templates"
# ok for compilation # CC=icc CXX=icpc LDFLAGS="-L$dirName/nrecipes/recipes_c-ansi/lib/ -L/opt/intel/parallel_studio_xe_2017_update2/compilers_and_libraries_2017.2.174/linux/mpi/intel64/lib -lmpi" ./configure --enable-mpi-exec --prefix=$dir/$TRACY/tracy FFLAGS="-O2 -Wall -fbounds-check" CFLAGS="-O2 -ansi -Wall -fno-implicit-templates" CXXFLAGS="-O2 -ansi -Wall -fno-implicit-templates"
# CC=icc CXX=icpc LDFLAGS="-L$NUM_REC/nrecipes/recipes_c-ansi/lib/ -L/opt/intel/parallel_studio_xe_2017_update2/compilers_and_libraries_2017.2.174/linux/mpi/intel64/lib -lmpi" ./configure --enable-mpi-exec --prefix=$dir/$TRACY/tracy FFLAGS="-O2 -Wall -fbounds-check" CFLAGS="-O2 -ansi -Wall -fno-implicit-templates" CXXFLAGS="-O2 -ansi -Wall -fno-implicit-templates"
# CC=gcc CXX=g++ LDFLAGS="-L$dirName/nrecipes/recipes_c-ansi/lib/ -I/usr/local/applications/tools/openmpi/4.1.1/include -L/usr/local/applications/tools/openmpi/4.1.1/lib -lmpi" ./configure --enable-mpi-exec FFLAGS="-O2 -Wall -fbounds-check " CFLAGS="-O2 -Wall -ansi " CXXFLAGS="-O2 -Wall -ansi -fno-implicit-templates -I/usr/local/applications/tools/openmpi/4.1.1/include -L/usr/local/applications/tools/openmpi/4.1.1/lib -lmpi_cxx"
# CC=gcc CXX=g++ LDFLAGS="-L$dirName/nrecipes/recipes_c-ansi/lib/ -I/usr/local/applications/tools/openmpi/4.1.1/include -L/usr/local/applications/tools/openmpi/4.1.1/lib -lmpi" ./configure --enable-mpi-exec FFLAGS="-O2 -Wall -fbounds-check " CFLAGS="-O2 -Wall -ansi " CXXFLAGS="-O2 -Wall -ansi -fno-implicit-templates -I/usr/local/applications/tools/openmpi/4.1.1/include -L/usr/local/applications/tools/openmpi/4.1.1/lib -lmpi_cxx"
# CC=gcc CXX=g++ LDFLAGS="-L$dirName/nrecipes/recipes_c-ansi/lib/ -I/usr/local/applications/tools/openmpi/4.1.1/include -L/usr/local/applications/tools/openmpi/4.1.1/lib -lmpi" ./configure --enable-mpi-exec FFLAGS="-O2 -Wall -fbounds-check " CFLAGS="-O2 -Wall -ansi " CXXFLAGS="-O2 -Wall -ansi -fno-implicit-templates -I/usr/local/applications/tools/openmpi/4.1.1/include -L/usr/local/applications/tools/openmpi/4.1.1/lib -lmpi_cxx"
# check gcc version
currentver
=
"
$(
gcc
-dumpversion
)
"
echo
"GCC is
$currentver
"
requiredver
=
"9.2.0"
if
[
"
$(
printf
'%s\n'
"
$requiredver
"
"
$currentver
"
|
sort
-V
|
head
-n1
)
"
=
"
$requiredver
"
]
;
then
then
CC
=
gcc
CXX
=
g++
LDFLAGS
=
"-L
$NUM_REC
/lib/ -I/usr/local/applications/tools/openmpi/4.1.1/include -L/usr/local/applications/tools/openmpi/4.1.1/lib -lmpi"
./configure
--enable-mpi-exec
FFLAGS
=
"-O2 -Wall -fbounds-check "
CFLAGS
=
"-O2 -Wall -ansi "
CXXFLAGS
=
"-O2 -Wall -ansi -fno-implicit-templates -I/usr/local/applications/tools/openmpi/4.1.1/include -L/usr/local/applications/tools/openmpi/4.1.1/lib -lmpi_cxx -fopenmp "
else
# newer gcc versions require extra fortran flags
echo
"GCC greater than or equal to
${
requiredver
}
"
echo
"extra flags to fortran ..."
##add fallow-argument-mismatch
CC
=
gcc
CXX
=
g++
LDFLAGS
=
"-L
$NUM_REC
/lib/ -I/usr/local/applications/tools/openmpi/4.1.1/include -L/usr/local/applications/tools/openmpi/4.1.1/lib -lmpi"
./configure
--enable-mpi-exec
FFLAGS
=
"-O2 -Wall -fbounds-check -fallow-argument-mismatch "
CFLAGS
=
"-O2 -Wall -ansi "
CXXFLAGS
=
"-O2 -Wall -ansi -fno-implicit-templates -I/usr/local/applications/tools/openmpi/4.1.1/include -L/usr/local/applications/tools/openmpi/4.1.1/lib -lmpi_cxx -fopenmp "
fi
fi
fi
make
make
#make install DESTDIR=/usr/local/applis_pa/codes/tracy/bin
#make install DESTDIR=/usr/local/applis_pa/codes/tracy/bin
make
install
DESTDIR
=
/home/sources/physmach/blanco-garcia
make
install
DESTDIR
=
~
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