Skip to content

Commit 18848d5

Browse files
malfetfacebook-github-bot
authored andcommitted
Do not use gold linker for CUDA builds (pytorch#59490)
Summary: Pull Request resolved: pytorch#59490 Reviewed By: agolynski, seemethere Differential Revision: D28913160 Pulled By: malfet fbshipit-source-id: d27092c252fc86424028abe146cf5f33a2f74544
1 parent a682ff7 commit 18848d5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.circleci/scripts/binary_populate_env.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,10 @@ if [[ -z "$DOCKER_IMAGE" ]]; then
6868
fi
6969
fi
7070

71-
USE_GOLD_LINKER="ON"
72-
if [[ ${DESIRED_CUDA} = "cu102" ]]; then
73-
USE_GOLD_LINKER="OFF"
71+
USE_GOLD_LINKER="OFF"
72+
# GOLD linker can not be used if CUPTI is statically linked into PyTorch, see https://github.com/pytorch/pytorch/issues/57744
73+
if [[ ${DESIRED_CUDA} == "cpu" ]]; then
74+
USE_GOLD_LINKER="ON"
7475
fi
7576

7677
# Default to nightly, since that's where this normally uploads to

0 commit comments

Comments
 (0)