Commit 85b7cb2e authored by Lee, Seyong's avatar Lee, Seyong
Browse files

Update scripts.

parent 1ff9b145
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -39,3 +39,10 @@ ENVIRONMENT SETUP

	- Set environment variable, openarc, to the OpenARC install directory:
	$ export openarc=$HOME/local/openarc

* Additional Settings for example tests
	- If an input OpenACC program uses OpenMP, set environment variable, OMP_NUM_THREADS.
	$ export OMP_NUM_THREADS=10

	- To compile MPI/OpenACC program, set environment variable, mpiinclude, to the MPI include path.
	$ export mpiinclude=/apps/compiler/pgi/linux86-64/19.1/cudampi/10.0/openmpi/3.1.0/include
+4 −0
Original line number Diff line number Diff line
@@ -34,6 +34,10 @@ if [ "$openarcrt" != "" ]; then
    rm "openarcConf.txt_tmp"
fi

if [ "$MPI_HOME" != "" ]; then
	mpiinclude="${MPI_HOME}/include"
fi

if [ "$mpiinclude" != "" ]; then
    mv "openarcConf.txt" "openarcConf.txt_tmp"
    cat "openarcConf.txt_tmp" | sed "s|__mpiinclude__|${mpiinclude}|g" > "openarcConf.txt"