Skip to content

Commit

Permalink
Merge pull request #2388 from ganga-devs/platform_choice
Browse files Browse the repository at this point in the history
Choose `-opt` platform if available
  • Loading branch information
mesmith75 authored Oct 28, 2024
2 parents 91e7df8 + 73dc58a commit 35e3bcf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ganga/GangaLHCb/Lib/Applications/GaudiExecUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ def prepare_cmake_app(myApp, myVer, myPath='$HOME/cmtuser', myUse=None, myFolder
logger.error("lb-run --list-platforms %s/%s failed!" % (myApp, myVer))
raise ApplicationPrepareError(verErr)

platformToUse = verOut.decode().split('\n')[-2]
platformsAvailable = [_p for _p in verOut.decode().split('\n') if 'opt' in _p]
if len(platformsAvailable)==0:
platformsAvailable = verOut.decode().split('\n')
platformToUse = platformsAvailable[0]

if not path.exists(full_path + '/' + myApp + 'Dev_' + myVer):
devStat, devOut, devErr = _exec_cmd(
Expand Down

0 comments on commit 35e3bcf

Please sign in to comment.