Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cirrus.star
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def main(ctx):
# - commit message containing [wheel build]
######################################################################

if env.get("CIRRUS_REPO_FULL_NAME") != "scipy/scipy":
if env.get("CIRRUS_REPO_FULL_NAME") != "tylerjereddy/scipy":
return []

if env.get("CIRRUS_CRON", "") == "nightly":
Expand Down
4 changes: 3 additions & 1 deletion ci/cirrus_general_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,6 @@ macos_arm64_test_task:
python -m pip install click rich_click doit pydevtool
python -m pip install pytest pooch
export DYLD_LIBRARY_PATH=/usr/local/gfortran/lib:/opt/arm64-builds/lib
python dev.py test
python -m pip install torch array-api-compat
# spot check array API torch MPS device compliance
SCIPY_TORCH_DEVICE=mps python dev.py test -b numpy -b pytorch -s cluster
4 changes: 4 additions & 0 deletions scipy/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ def check_fpu_mode(request):

array_api_compatible = pytest.mark.parametrize("xp", array_api_backends)

if "pytorch" in array_api_available_backends:
torch_device_setting = os.environ.get("SCIPY_TORCH_DEVICE", "cpu")
torch.set_default_device(torch_device_setting)

skip_if_array_api = pytest.mark.skipif(
SCIPY_ARRAY_API,
reason="do not run with Array API on",
Expand Down