Skip to content

Commit

Permalink
Trying to fix rpath in gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuMoalic committed Oct 25, 2023
1 parent e1d11d5 commit dc93600
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,12 @@ jobs:
echo $VERSION
LDFLAGS="-X github.com/MathieuMoalic/amumax/engine.VERSION=$VERSION"
echo $LDFLAGS
NVCC_CCBIN=/usr/bin/gcc
CGO_CFLAGS="-I${LD_LIBRARY_PATH}"
CGO_LDFLAGS="-lcufft -lcurand -lcuda -L${LD_LIBRARY_PATH} -Wl,-rpath -Wl,\$ORIGIN/$RPATH"
CGO_CFLAGS_ALLOW='(-fno-schedule-insns|-malign-double|-ffast-math)'
NVCCFLAGS="-std=c++03 -ccbin=$NVCC_CCBIN --compiler-options -Werror --compiler-options -Wall -Xptxas -O3 -ptx"
go build -v -o ./build/amumax -ldflags "$LDFLAGS"
env:
VERSION: date +'%Y.%m.%d'
NVCC_CCBIN: /usr/bin/gcc
CGO_CFLAGS: "-I${LD_LIBRARY_PATH}"
CGO_LDFLAGS: "-lcufft -lcurand -lcuda -L${LD_LIBRARY_PATH} -Wl,-rpath -Wl,$ORIGIN/$RPATH"
CGO_CFLAGS_ALLOW: '(-fno-schedule-insns|-malign-double|-ffast-math)'
NVCCFLAGS: "-std=c++03 -ccbin=$NVCC_CCBIN --compiler-options -Werror --compiler-options -Wall -Xptxas -O3 -ptx"
- name: Get CUDA Libs
run: |
Expand Down

0 comments on commit dc93600

Please sign in to comment.