Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit 2e50539

Browse files
authored
Merge branch 'pytorch:main' into xu_switch_to_mkl_static
2 parents 943437e + 987dcb0 commit 2e50539

File tree

5 files changed

+8
-22
lines changed

5 files changed

+8
-22
lines changed

.github/scripts/validate_binaries.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ else
6969
export PATH=${OLD_PATH}
7070
fi
7171

72+
# Use case CUDA_VISIBLE_DEVICES: https://github.com/pytorch/pytorch/issues/128819
73+
if [[ ${MATRIX_GPU_ARCH_TYPE} == 'cuda' ]]; then
74+
python3 -c "import torch;import os;print(torch.cuda.device_count(), torch.__version__);os.environ['CUDA_VISIBLE_DEVICES']='0';print(torch.empty(2, device='cuda'))"
75+
fi
76+
7277
# this is optional step
7378
if [[ ${TARGET_OS} != linux* ]]; then
7479
conda deactivate

check_binary.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ if [[ "$OSTYPE" == "msys" ]]; then
375375
fi
376376

377377
# Test that CUDA builds are setup correctly
378-
if [[ "$DESIRED_CUDA" != 'cpu' && "$DESIRED_CUDA" != 'cpu-cxx11-abi' && "$DESIRED_CUDA" != *"rocm"* && "$(uname -m)" != "s390x" ]]; then
378+
if [[ "$DESIRED_CUDA" != 'cpu' && "$DESIRED_CUDA" != 'xpu' && "$DESIRED_CUDA" != 'cpu-cxx11-abi' && "$DESIRED_CUDA" != *"rocm"* && "$(uname -m)" != "s390x" ]]; then
379379
if [[ "$PACKAGE_TYPE" == 'libtorch' ]]; then
380380
build_and_run_example_cpp check-torch-cuda
381381
else

common/install_mkl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -ex
33

44
# MKL
5-
MKL_VERSION=2022.2.1
5+
MKL_VERSION=2024.2.0
66

77
mkdir -p /opt/intel/
88
pushd /tmp

manywheel/build_common.sh

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -437,19 +437,6 @@ for pkg in /$WHEELHOUSE_DIR/torch_no_python*.whl /$WHEELHOUSE_DIR/torch*linux*.w
437437
popd
438438
fi
439439

440-
if [[ "$USE_SPLIT_BUILD" == "true" ]]; then
441-
# @sahanp todo: Remove this line
442-
echo "current files in directory"
443-
ls -l
444-
445-
echo "removing extraneous .so and .a files"
446-
# todo @PaliC: Remove these .so and .a files before hand in the split build
447-
rm *.so *.a || true
448-
449-
echo "Packaging the following files"
450-
ls -alR
451-
fi
452-
453440
# zip up the wheel back
454441
zip -rq $(basename $pkg) $PREIX*
455442

test/smoke_test/smoke_test.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,6 @@ def smoke_test_cuda(package: str, runtime_error_check: str, torch_compile_check:
181181
if (sys.platform in ["linux", "linux2"]):
182182
print(f"torch nccl version: {torch.cuda.nccl.version()}")
183183

184-
185-
# test settind CUDA_VISIBLE_DEVICES
186-
print(f"torch.cuda.device_count: {torch.cuda.device_count()}")
187-
os.environ['CUDA_VISIBLE_DEVICES']='0'
188-
print(torch.empty(2, device='cuda'))
189-
del os.environ['CUDA_VISIBLE_DEVICES']
190-
191184
if runtime_error_check == "enabled":
192185
test_cuda_runtime_errors_captured()
193186

@@ -323,6 +316,7 @@ def main() -> None:
323316
)
324317
options = parser.parse_args()
325318
print(f"torch: {torch.__version__}")
319+
print(torch.__config__.parallel_info())
326320

327321
check_version(options.package)
328322
smoke_test_conv2d()

0 commit comments

Comments
 (0)