Commit 69b4ab65 authored by Gaurav Kukreja's avatar Gaurav Kukreja

Changed linker and compiler to use Scalasca

Signed-off-by: 's avatarGaurav Kukreja <gaurav.kukreja@tum.de>
parent 0334d24e
...@@ -116,7 +116,9 @@ vars.AddVariables( ...@@ -116,7 +116,9 @@ vars.AddVariables(
BoolVariable( 'loop_openmp', 'enable loop parallelization using OpenMP', False ), BoolVariable( 'loop_openmp', 'enable loop parallelization using OpenMP', False ),
BoolVariable( 'write_output', 'write output files at each checkpoint', True ) BoolVariable( 'write_output', 'write output files at each checkpoint', True ),
BoolVariable( 'scalasca_instrument', 'enable when code has been instrumented with scalasca, to use scalasca during compilation', False )
) )
# external variables # external variables
...@@ -171,7 +173,10 @@ if env['parallelization'] in ['mpi', 'mpi_with_cuda']: ...@@ -171,7 +173,10 @@ if env['parallelization'] in ['mpi', 'mpi_with_cuda']:
if env['compiler'] == 'cray': if env['compiler'] == 'cray':
env['CXX'] = 'CC' env['CXX'] = 'CC'
else: else:
env['CXX'] = env['LINKERFORPROGRAMS'] = env.Detect(['mpiCC', 'mpicxx']) if env['scalasca_instrument']:
env['CXX'] = env['LINKERFORPROGRAMS'] = env.Detect(['scalasca -instrument -comp=none -user -mode=MPI mpiCC', 'scalasca -instrument -comp=none -user -mode=MPI mpicxx'])
else:
env['CXX'] = env['LINKERFORPROGRAMS'] = env.Detect(['mpiCC', 'mpicxx'])
if not env['CXX']: if not env['CXX']:
print >> sys.stderr, '** MPI compiler not found, please update PATH environment variable' print >> sys.stderr, '** MPI compiler not found, please update PATH environment variable'
Exit(1) Exit(1)
......
...@@ -35,6 +35,7 @@ solver='fwavevec' ...@@ -35,6 +35,7 @@ solver='fwavevec'
#solver='augrie' #solver='augrie'
#writeNetCDF='yes' #writeNetCDF='yes'
write_output='no' write_output='no'
scalasca_instrument='yes'
# Library paths (only required of not installed in default path) # Library paths (only required of not installed in default path)
#netCDFDir='' #netCDFDir=''
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment