Skip to content

Commit e9be2de

Browse files
committed
avoid filter for ptxas advisories on osx
1 parent 29b23b0 commit e9be2de

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

recipe/build.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,12 @@ case ${PKG_NAME} in
249249
libtorch)
250250
# Call setup.py directly to avoid spending time on unnecessarily
251251
# packing and unpacking the wheel.
252-
$PREFIX/bin/python setup.py -q build | stdbuf -oL grep -vE "Advisory: Modifier '\.sp::ordered_metadata'"
252+
if [[ "$target_platform" == linux-* ]]; then
253+
# filter out extremely noisy ptxas advisories
254+
$PREFIX/bin/python setup.py -q build | stdbuf -oL grep -vE "Advisory: Modifier '\.sp::ordered_metadata'"
255+
else
256+
$PREFIX/bin/python setup.py -q build
257+
fi
253258

254259
mv build/lib.*/torch/bin/* ${PREFIX}/bin/
255260
mv build/lib.*/torch/lib/* ${PREFIX}/lib/

0 commit comments

Comments
 (0)