From 9f0d09e6b785e6b42ce402b00f53f91e66f34250 Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Thu, 18 Jul 2024 11:23:03 +0100 Subject: [PATCH] debug --- .github/workflows/build-conda-m1.yml | 1 + test/smoke_test.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/build-conda-m1.yml b/.github/workflows/build-conda-m1.yml index d920ee63ff4..533232afdf5 100644 --- a/.github/workflows/build-conda-m1.yml +++ b/.github/workflows/build-conda-m1.yml @@ -45,6 +45,7 @@ jobs: test-infra-repository: pytorch/test-infra test-infra-ref: main build-matrix: ${{ needs.generate-matrix.outputs.matrix }} + env-var-script: .github/scripts/export_IS_M1_CONDA_BUILD_JOB.sh pre-script: ${{ matrix.pre-script }} post-script: ${{ matrix.post-script }} package-name: ${{ matrix.package-name }} diff --git a/test/smoke_test.py b/test/smoke_test.py index c5ade7d9f13..88fa58ecb25 100644 --- a/test/smoke_test.py +++ b/test/smoke_test.py @@ -84,6 +84,9 @@ def main() -> None: print(f"torch.cuda.is_available: {torch.cuda.is_available()}") print(f"{torch.ops.image._jpeg_version() = }") + print("XXX") + print(os.getenv("IS_M1_CONDA_BUILD_JOB")) + print("XXX") if not torch.ops.image._is_compiled_against_turbo(): msg = "Torchvision wasn't compiled against libjpeg-turbo" if os.getenv("IS_M1_CONDA_BUILD_JOB") == "1":