Skip to content

Commit

Permalink
Add snapcraft-preload
Browse files Browse the repository at this point in the history
This should fix the multiprocessing /
multithreading issues
  • Loading branch information
pedro-avalos committed Jan 30, 2025
1 parent 5cd4477 commit 38989f0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ platforms:

apps:
rocm-validation-suite:
command: opt/rocm-${SNAPCRAFT_PROJECT_VERSION}/bin/rvs
command: bin/snapcraft-preload ${SNAP}/opt/rocm-${SNAPCRAFT_PROJECT_VERSION}/bin/rvs
environment:
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/opt/rocm-${SNAPCRAFT_PROJECT_VERSION}/lib
PATH: $PATH:$SNAP/opt/rocm-${SNAPCRAFT_PROJECT_VERSION}/bin
Expand Down Expand Up @@ -113,3 +113,13 @@ parts:
- -usr/lib/x86_64-linux-gnu/libmenu.so*
- -usr/lib/x86_64-linux-gnu/libncurses.so*
- -usr/lib/x86_64-linux-gnu/libpanel.so*

snapcraft-preload:
source: https://github.com/sergiusens/snapcraft-preload.git
plugin: cmake
cmake-parameters:
- -DCMAKE_INSTALL_PREFIX=/
build-packages:
- on amd64:
- gcc-multilib
- g++-multilib

0 comments on commit 38989f0

Please sign in to comment.