Skip to content

Commit

Permalink
Merge pull request #21528 from PetrKralCZ/20241003143621_new_pr_NextG…
Browse files Browse the repository at this point in the history
…enMap055

link `libOpenCL.so.1` to the `lib` directory for NextGenMap (required when using RPATH linking)
  • Loading branch information
laraPPr authored Oct 4, 2024
2 parents 9a9c1b9 + e2e3018 commit 0cce539
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@ postinstallcmds = [
r"sed -i 's/\(LD_LIBRARY_PATH=[^ ]*\)\"/\1:$LD_LIBRARY_PATH\"/g' %(installdir)s/bin/ngm",
# fix execution permissions for ngm* binaries/scripts
"chmod a+x %(installdir)s/bin/ngm*",
# link `libOpenCL.so.1` to the `lib` directory (required when using RPATH linking)
'cd %(installdir)s && mkdir -p lib && ln -rfs bin/opencl/lib/libOpenCL.so.1 lib/libOpenCL.so.1',
]

sanity_check_paths = {
'files': ['bin/%s' % x for x in ['ngm', 'ngm-core', 'ngm-log', 'ngm-utils', 'oclTool']],
'files': ['lib/libOpenCL.so.1'] + ['bin/%s' % x for x in ['ngm', 'ngm-core', 'ngm-log', 'ngm-utils', 'oclTool']],
'dirs': ['bin/opencl']
}

Expand Down

0 comments on commit 0cce539

Please sign in to comment.