Skip to content

Commit

Permalink
Add dependency on cudatoolkit (#55)
Browse files Browse the repository at this point in the history
* cudatoolkit version added in meta.yaml build host and run section

* Incremented build number and added cudatoolkit version in build host and run section of variants

* Limit cudatoolkit change to run section only

* Removed cudatoolkit in build section

* Cudatoolkit parameter correction in torchtext meta and torchtext variants

---------

Co-authored-by: root <[email protected]>
Co-authored-by: root <[email protected]>
  • Loading branch information
3 people authored Jul 10, 2024
1 parent ae62de2 commit 7a07318
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions text-0.16.2/recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ source:
- 0101-disable-tcmalloc.patch

build:
number: 2
number: 3
string: {{ build_type }}_py{{ python | replace(".", "") }}_{{ PKG_BUILDNUM }} #[build_type == 'cpu']
string: {{ build_type }}{{ cudatoolkit | replace(".*", "") }}_py{{ python | replace(".", "") }}_{{ PKG_BUILDNUM }} #[build_type == 'cuda']
script_env: #[ppc_arch == 'p10']
Expand All @@ -29,6 +29,7 @@ requirements:
- python {{ python }}
- _pytorch_select {{ pytorch_select_version }}
- pytorch-base {{ pytorch }}
- cudatoolkit {{ cudatoolkit }} #[build_type == 'cuda']
run:
- numpy {{ numpy }}
- python {{ python }}
Expand All @@ -38,7 +39,7 @@ requirements:
- tqdm {{ tqdm }}
- sentencepiece {{ sentencepiece }}
- torchdata

- cudatoolkit {{ cudatoolkit }} #[build_type == 'cuda']
test:
imports:
- torchtext
Expand Down
3 changes: 2 additions & 1 deletion text-0.16.2/variants/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package:
version: {{ version }}

build:
number: 1
number: 2
string: py{{ python | replace(".", "") }}_{{ PKG_BUILDNUM }} #[build_type == 'cpu']
string: {{ build_type }}{{ cudatoolkit | replace(".*", "") }}_py{{ python | replace(".", "") }}_{{ PKG_BUILDNUM }} #[build_type == 'cuda']

Expand All @@ -17,6 +17,7 @@ requirements:
- _pytorch_select {{ pytorch_select_version }}
- torchtext-base {{ torchtext }}
- python {{ python }}
- cudatoolkit {{ cudatoolkit }} #[build_type == 'cuda']

about:
home: http://pytorch.org/
Expand Down

0 comments on commit 7a07318

Please sign in to comment.