Settings for NEC SDK corrected
This commit is contained in:
parent
d3e03daded
commit
c6a4d9f909
|
@ -6,11 +6,17 @@ from lib.shell import get_from_command
|
|||
def get_compiler_version(compiler):
|
||||
if compiler == "gnu":
|
||||
cc = "gcc"
|
||||
compstr = get_from_command([cc, "-dumpversion"]).strip()
|
||||
elif compiler == "intel":
|
||||
cc = "icc"
|
||||
compstr = get_from_command([cc, "-dumpversion"]).strip()
|
||||
elif compiler == "aocc":
|
||||
cc = "clang"
|
||||
compstr = get_from_command([cc, "-dumpversion"]).strip()
|
||||
elif compiler == "nec":
|
||||
cc = "ncc"
|
||||
rawstr = get_from_command([cc, "--version"])
|
||||
compstr = rawstr.split()[2]
|
||||
return compstr
|
||||
|
||||
|
||||
|
@ -30,6 +36,9 @@ def get_mpi_version(mpi):
|
|||
elif mpi == "mpich":
|
||||
rawstr = get_from_command(["mpirun", "--version"])
|
||||
mpistr = rawstr.split()[4]
|
||||
elif mpi == "necmpi":
|
||||
rawstr = get_from_command(["mpirun", "--version"])
|
||||
mpistr = rawstr.split()[4]
|
||||
return mpistr
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue