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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PA
Optics
TRACY3
Compare revisions
5b5515a8b56899e55c60a1fd2d212a92b40373d1 to 930b4e322c628413d0406ba8722cbae480619028
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
PA/optics/tracy3
Select target project
No results found
930b4e322c628413d0406ba8722cbae480619028
Select Git revision
Branches
ISEI_3_5_1
Jianfeng
VERSION_3_9-Indus2
VERSION_3_9-alba
compilation2022apr
master
Tags
ISEI_3_5_1-PATCH_1
ISEI_3_5_1-PATCH_2
PROD_3_5_1
VERSION-3_10
VERSION-3_5
VERSION-3_7
VERSION-3_8
VERSION-3_9
VERSION-3_9_1
VERSION-3_9_Indus2
VERSION-3_9_alba
VERSION_3_6prerelease
VERSION_3_6prerelease2
tracy
20 results
Swap
Target
PA/optics/tracy3
Select target project
PA/optics/tracy3
1 result
5b5515a8b56899e55c60a1fd2d212a92b40373d1
Select Git revision
Branches
ISEI_3_5_1
Jianfeng
VERSION_3_9-Indus2
VERSION_3_9-alba
compilation2022apr
master
Tags
ISEI_3_5_1-PATCH_1
ISEI_3_5_1-PATCH_2
PROD_3_5_1
VERSION-3_10
VERSION-3_5
VERSION-3_7
VERSION-3_8
VERSION-3_9
VERSION-3_9_1
VERSION-3_9_Indus2
VERSION-3_9_alba
VERSION_3_6prerelease
VERSION_3_6prerelease2
tracy
20 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
changing IDZMAX limit to 500
· a2a09ca9
BLANCO-GARCIA
authored
1 year ago
a2a09ca9
moving to gcc for compatibility with matlab
· 930b4e32
BLANCO-GARCIA
authored
1 year ago
930b4e32
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
make_for_tracy3.sh
+32
-11
32 additions, 11 deletions
make_for_tracy3.sh
tracy/tracy/inc/tracy_global.h
+1
-1
1 addition, 1 deletion
tracy/tracy/inc/tracy_global.h
with
33 additions
and
12 deletions
make_for_tracy3.sh
View file @
930b4e32
...
...
@@ -6,14 +6,14 @@
# 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
echo
"Missing parameter"
echo
"Use:
$0
debug for debug"
echo
"Use:
$0
opt for optimization result"
echo
"Use:
$0
mpi for optimization result"
echo
"Missing parameter"
echo
"Use:
$0
debug for debug"
echo
"Use:
$0
opt for optimization result"
echo
"Use:
$0
mpi for optimization result"
exit
1
fi
...
...
@@ -30,6 +30,8 @@ cd "$dir/$TRACY"
rm
-f
autom4te.cache/
*
rm
-rf
aclocal.m4
### 2023jun01 sometimes distclean does not work
# try to comment distclean, run it once and then uncomment
make distclean
# Clean everything and call autoreconf
...
...
@@ -42,7 +44,7 @@ fi
#dirName=/home/sources/physmach/nadolski/codes
#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"
]
then
...
...
@@ -51,12 +53,31 @@ CC=icc CXX=icpc LDFLAGS="-L$dirnName/nrecipes/recipes_c-ansi/lib/" ./configure -
fi
if
[
$1
==
"mpi"
]
then
#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"
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"
# 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"
# 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
make
#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.
tracy/tracy/inc/tracy_global.h
View file @
930b4e32
...
...
@@ -162,7 +162,7 @@ struct FieldMapType {
/* ID Laurent */
#define IDXMAX 500
#define IDZMAX
1
00
#define IDZMAX
5
00
struct
InsertionType
{
int
Pmethod
;
/* Integration Method */
...
...
This diff is collapsed.
Click to expand it.