Skip to content

Commit

Permalink
Merge pull request #4 from bdice/fix-cudart-tests
Browse files Browse the repository at this point in the history
Fix cuda-cudart tests.
  • Loading branch information
adibbley authored Apr 11, 2023
2 parents 20212b9 + 622cf4d commit 251fa03
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions recipes/cuda-cudart/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ build:
number: 0
skip: true # [osx or win]

test:
commands:
- test -L $PREFIX/lib/libcudart.so.{{ version.split(".")[0] }} # [linux]
- test -L $PREFIX/lib/libcudart.so.{{ version }} # [linux]
- test -L $PREFIX/targets/{{ target_name }}/lib/libcudart.so.{{ version.split(".")[0] }} # [linux]
- test -f $PREFIX/targets/{{ target_name }}/lib/libcudart.so.{{ version }} # [linux]
- if not exist %LIBRARY_BIN%\cudart64_{{ version.split(".")[0] }}.dll exit 1 # [win]

outputs:
- name: cuda-cudart
files:
Expand All @@ -45,13 +53,7 @@ outputs:
- {{ pin_compatible("cuda-version", max_pin="x.x") }}
run_constrained:
- arm-variant * {{ arm_variant_type }} # [aarch64]
test:
commands:
- test -L $PREFIX/lib/libcudart.so.{{ version }} # [linux]
- test -L $PREFIX/lib/libcudart.so.{{ version.split(".")[0] }} # [linux]
- test -L $PREFIX/targets/{{ target_name }}/lib/libcudart.so.{{ version }} # [linux]
- test -f $PREFIX/targets/{{ target_name }}/lib/libcudart.so.{{ version.split(".")[0] }} # [linux]
- if not exist %LIBRARY_BIN%\cudart64_{{ version.split(".")[0] }}.dll exit 1 # [win]
# Tests are defined at the top level, due to package/output name conflicts.
about:
home: https://developer.nvidia.com/cuda-toolkit
license_file: LICENSE
Expand Down

0 comments on commit 251fa03

Please sign in to comment.