Skip to content

Commit 7cd34ff

Browse files
committed
Try splitting tests into a separate package
Fixes #418 Signed-off-by: Michał Górny <[email protected]>
1 parent 8a74a9e commit 7cd34ff

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

recipe/meta.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,16 @@ outputs:
352352
- pytorch-gpu {{ version }} # [cuda_compiler_version != "None"]
353353
- pytorch-cpu <0.0a0 # [cuda_compiler_version != "None"]
354354

355+
- name: pytorch-tests
356+
build:
357+
string: cuda{{ cuda_compiler_version | replace('.', '') }}_{{ blas_impl }}_py{{ CONDA_PY }}_h{{ PKG_HASH }}_{{ build }} # [cuda_compiler_version != "None"]
358+
string: cpu_{{ blas_impl }}_py{{ CONDA_PY }}_h{{ PKG_HASH }}_{{ build }} # [cuda_compiler_version == "None"]
359+
detect_binary_files_with_prefix: false
355360
test:
356361
requires:
362+
- pytorch {{ version }} cuda*_{{ blas_impl }}*{{ build }} # [megabuild and cuda_compiler_version != "None"]
363+
- pytorch {{ version }} cpu_{{ blas_impl }}*{{ build }} # [megabuild and cuda_compiler_version == "None"]
364+
- {{ pin_subpackage("pytorch", exact=True) }} # [not megabuild]
357365
- {{ compiler('c') }}
358366
- {{ compiler('cxx') }}
359367
# for torch.compile tests

0 commit comments

Comments
 (0)