-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
meta.yaml
executable file
·89 lines (83 loc) · 2.78 KB
/
meta.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{% set name = "nvcc" %}
{% set number = 13 %}
{% if cuda_compiler_version in (None, "None", True, False) %}
{% set cuda_major = 0 %}
{% set cuda_minor = 0 %}
{% set cuda_major_minor = (0, 0) %}
{% else %}
{% set cuda_major = environ.get("cuda_compiler_version", "11.2").split(".")[0]|int %}
{% set cuda_minor = environ.get("cuda_compiler_version", "11.2").split(".")[1]|int %}
{% set cuda_major_minor = (cuda_major, cuda_minor) %}
{% endif %}
package:
name: "{{ name }}"
build:
number: {{ number }}
{% if cuda_major == 0 or (target_platform == "linux-ppc64le" and cuda_major_minor != (10, 2)) %}
skip: true
{% endif %}
outputs:
- name: "{{ name }}_{{ target_platform }}"
version: "{{ cuda_compiler_version }}"
number: {{ number }}
script: install_nvcc.sh # [linux]
script: windows/install_nvcc.bat # [win]
build:
ignore_run_exports:
- libgcc-ng
run_exports:
strong:
- cudatoolkit {{ cuda_compiler_version }}|{{ cuda_compiler_version }}.*
{% if cdt_name == "cos7" %} # [linux]
- __glibc >=2.17 # [linux]
{% endif %} # [linux]
requirements:
build: # [win]
- m2-sed # [win]
host:
# Needed to symlink libcuda into sysroot libs.
- {{ compiler("c") }}
{% if cdt_name == "cos7" %} # [linux]
- sysroot_{{ target_platform }} 2.17 # [linux]
- __glibc >=2.17 # [linux]
{% endif %} # [linux]
run:
- sed # [linux]
{% if cdt_name == "cos7" %} # [linux]
- sysroot_{{ target_platform }} 2.17 # [linux]
- __glibc >=2.17 # [linux]
{% endif %} # [linux]
test:
requires:
- {{ compiler("c") }}
# Host code is forwarded to a C++ compiler
- {{ compiler("cxx") }}
{% if cdt_name == "cos7" %} # [linux]
- sysroot_{{ target_platform }} 2.17 # [linux]
{% endif %} # [linux]
files:
- test.cu
- test_nvcc.sh # [linux]
- windows\test_nvcc.bat # [win]
commands:
- bash test_nvcc.sh # [linux]
- windows\test_nvcc.bat # [win]
about:
home: https://github.com/conda-forge/nvcc-feedstock
license: BSD-3-Clause
license_file: LICENSE.txt
summary: A meta-package to enable the right nvcc.
about:
home: https://github.com/conda-forge/nvcc-feedstock
license: BSD-3-Clause
license_file: LICENSE.txt
summary: A meta-package to enable the right nvcc.
extra:
recipe-maintainers:
- dillon-cullinan
- isuruf
- jakirkham
- kkraus14
- mike-wendt
- raydouglass
- jaimergp