Skip to content

Commit

Permalink
Merge pull request cupy#374 from chainer-ci/bp-373-v13-link-as-needed
Browse files Browse the repository at this point in the history
[backport] Only link shared libraries required
  • Loading branch information
kmaehashi authored Jan 16, 2024
2 parents 5bbea1a + a300511 commit b1a9c8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builder/build-wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ fi
export CUPY_NUM_BUILD_JOBS=4
export CUPY_NUM_NVCC_THREADS=4

export LDFLAGS="-Wl,--as-needed ${LDFLAGS}"

"$@"
2 changes: 2 additions & 0 deletions builder/build-wrapper-jetson
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

export CUPY_NVCC_GENERATE_CODE="arch=compute_72,code=sm_72;arch=compute_62,code=sm_62;arch=compute_53,code=sm_53"

export LDFLAGS="-Wl,--as-needed ${LDFLAGS}"

"$@"

0 comments on commit b1a9c8f

Please sign in to comment.