Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78621789
hack_openmp_for_pgi.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Aug 22, 00:59
Size
619 B
Mime Type
text/x-shellscript
Expires
Sat, Aug 24, 00:59 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
19205518
Attached To
rLAMMPS lammps
hack_openmp_for_pgi.sh
View Options
#!/bin/sh
#
# this script modifies the OpenMP directives in LAMMPS
# in a way, so that they are also accepted by the PGI
# compilers. This modification incurs a performance
# penalty, though, so it is not part of the regular code.
#
# to apply the hack. go to src/, install all packages
# as needed and then run: sh ../tools/hack_openmp_for_pgi.sh
# this needs to be repeated after each "make package-update"
#
# Axel Kohlmeyer <akohlmey@gmail.com>
for f in *.h *.cpp
do \
sed -e '/#pragma omp/s/^\(.*default\)(none)\(.*\)$/\1(shared)\2/' \
-e '/#pragma omp/s/shared([a-z0-9,_]\+)//' \
-i.bak $f
done
Event Timeline
Log In to Comment