-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
meta.yaml
197 lines (189 loc) · 8.07 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
{% set name = "cuda-nvcc-impl" %}
{% set version = "12.1.105" %}
{% set cuda_version = "12.1" %}
{% set platform = "linux-x86_64" %} # [linux64]
{% set platform = "linux-ppc64le" %} # [ppc64le]
{% set platform = "linux-sbsa" %} # [aarch64]
{% set platform = "windows-x86_64" %} # [win]
{% set target_name = "x86_64-linux" %} # [linux64]
{% set target_name = "ppc64le-linux" %} # [ppc64le]
{% set target_name = "sbsa-linux" %} # [aarch64]
{% set target_name = "x64" %} # [win]
{% set extension = "tar.xz" %} # [not win]
{% set extension = "zip" %} # [win]
package:
name: cuda-nvcc-impl-split
version: {{ version }}
source:
url: https://developer.download.nvidia.com/compute/cuda/redist/cuda_nvcc/{{ platform }}/cuda_nvcc-{{ platform }}-{{ version }}-archive.{{ extension }}
sha256: 0b85f7eee17788abbd170b0b493c74ce2e9fd5a9604461b99c2c378165e1083b # [linux64]
sha256: e6e2c4c80e44409cd9006c6f1fd56d7c48c4a8bcd2d130f9405bcb7af16660a0 # [ppc64le]
sha256: 6e795ec791241e9320ec300657408cbfafbe7e79ceda0da46522cc85ced358f4 # [aarch64]
sha256: 3b452d704c92e8af6d59247ee842b2ca8c8e37dd04c015eea59c74c265672074 # [win]
patches:
- nvcc.profile.patch # [linux]
- nvcc.profile.patch.win # [win]
build:
number: 0
skip: true # [osx]
outputs:
- name: cuda-nvcc-tools
files: # [linux]
- bin # [linux]
- nvvm/bin # [linux]
- nvvm/libdevice # [linux]
requirements:
build:
- {{ compiler("c") }}
- {{ compiler("cxx") }}
- sysroot_{{ target_platform }} 2.17 # [linux]
host:
- arm-variant * {{ arm_variant_type }} # [aarch64]
- cuda-version {{ cuda_version }}
run:
- {{ pin_compatible("cuda-version", max_pin="x.x") }}
run_constrained:
- gcc_impl_{{ target_platform }} >=6,<13 # [linux]
- arm-variant * {{ arm_variant_type }} # [aarch64]
test:
commands:
- test -f $PREFIX/bin/nvcc # [linux]
- test -f $PREFIX/bin/ptxas # [linux]
- test -d $PREFIX/nvvm # [linux]
- test -f $PREFIX/nvvm/bin/cicc # [linux]
about:
home: https://developer.nvidia.com/cuda-toolkit
license_file: LICENSE
license: LicenseRef-NVIDIA-End-User-License-Agreement
license_url: https://docs.nvidia.com/cuda/eula/index.html
summary: Architecture independent part of CUDA NVCC compiler.
description: |
Compiler for CUDA applications.
doc_url: https://docs.nvidia.com/cuda/index.html
- name: cuda-nvcc-dev_{{ target_platform }}
build:
noarch: generic
missing_dso_whitelist: # [win]
- "*/api-ms-win-core-winrt-*.dll" # [win]
run_exports:
strong:
- cuda-version >={{ cuda_version }},<{{ cuda_version.split(".")[0]|int + 1 }}
files:
# targets/{{ target_name }}/bin/nvcc is only a symlink
- targets/{{ target_name }}/bin # [linux]
- targets/{{ target_name }}/nvvm # [linux]
- targets/{{ target_name }}/include # [linux]
- targets/{{ target_name }}/lib # [linux]
- Library\bin\crt # [win]
- Library\bin\*.exe # [win]
- Library\bin\nvcc.profile # [win]
- Library\nvvm # [win]
- Library\include\crt # [win]
- Library\include\fatbinary_section.h # [win]
- Library\include\nvPTXCompiler.h # [win]
- Library\lib\nvptxcompiler_static.lib # [win]
requirements:
build:
- sysroot_{{ target_platform }} 2.17 # [linux]
host:
- arm-variant * {{ arm_variant_type }} # [aarch64]
- cuda-version {{ cuda_version }}
- cuda-nvcc-tools {{ cuda_version }}
- libgcc-ng >=6 # [linux]
run:
- {{ pin_compatible("cuda-version", max_pin="x.x") }}
- libgcc-ng >=6 # [linux]
run_constrained:
- gcc_impl_{{ target_platform }} >=6,<13 # [linux]
- arm-variant * {{ arm_variant_type }} # [aarch64]
test:
commands:
- test -L $PREFIX/targets/{{ target_name }}/bin/nvcc # [linux]
- test -L $PREFIX/targets/{{ target_name }}/nvvm # [linux]
- test -f $PREFIX/targets/{{ target_name }}/lib/libnvptxcompiler_static.a # [linux]
- test -f $PREFIX/targets/{{ target_name }}/include/nvPTXCompiler.h # [linux]
- if not exist %LIBRARY_BIN%\crt\link.stub exit 1 # [win]
- if not exist %LIBRARY_BIN%\nvcc.exe exit 1 # [win]
- if not exist %LIBRARY_BIN%\nvcc.profile exit 1 # [win]
- if not exist %LIBRARY_LIB%\nvptxcompiler_static.lib exit 1 # [win]
- if not exist %LIBRARY_INC%\nvPTXCompiler.h exit 1 # [win]
- if not exist %LIBRARY_INC%\crt\common_functions.h exit 1 # [win]
about:
home: https://developer.nvidia.com/cuda-toolkit
license_file: LICENSE
license: LicenseRef-NVIDIA-End-User-License-Agreement
license_url: https://docs.nvidia.com/cuda/eula/index.html
summary: Target architecture dependent parts of CUDA NVCC compiler.
description: |
Compiler for CUDA applications.
doc_url: https://docs.nvidia.com/cuda/index.html
- name: cuda-nvcc-impl
build:
# libnvvm.so gets corrupted by patchelf. No need to relocate as it is already relocatable
binary_relocation: False
run_exports:
strong:
- cuda-version >={{ cuda_version }},<{{ cuda_version.split(".")[0]|int + 1 }}
files: # [linux]
- lib/libnvptxcompiler_static.a # [linux]
- nvvm/include # [linux]
- nvvm/lib64 # [linux]
requirements:
build:
- sysroot_{{ target_platform }} 2.17 # [linux]
host:
- arm-variant * {{ arm_variant_type }} # [aarch64]
- cuda-version {{ cuda_version }}
- cuda-cudart-dev
run:
- {{ pin_subpackage("cuda-nvcc-tools", exact=True) }}
- {{ pin_subpackage("cuda-nvcc-dev_" + target_platform, exact=True) }}
- {{ pin_compatible("cuda-version", max_pin="x.x") }}
- cuda-cudart-dev
run_constrained:
- gcc_impl_{{ target_platform }} >=6,<13 # [linux]
- arm-variant * {{ arm_variant_type }} # [aarch64]
- vc >={{ VCVER }} # [win]
test:
requires:
- {{ compiler("c") }}
- {{ compiler("cxx") }}
- gxx # [linux]
- gcc # [linux]
- vs{{ VSYEAR }}_win-64 =={{ CL_VERSION }} # [win]
- cmake
- cuda-driver-dev # [linux]
- git # [linux]
- ninja
files:
- test.cu
- CMakeLists.txt
- run_cmake_cuda_tests.sh # [linux]
commands:
- test -L $PREFIX/lib/libnvptxcompiler_static.a # [linux]
- nvcc --version
- nvcc --verbose test.cu
- cmake -S . -B ./build -G=Ninja && cmake --build ./build -v
- bash ./run_cmake_cuda_tests.sh # [linux and (x86_64 or aarch64)]
about:
home: https://developer.nvidia.com/cuda-toolkit
license_file: LICENSE
license: LicenseRef-NVIDIA-End-User-License-Agreement
license_url: https://docs.nvidia.com/cuda/eula/index.html
summary: Compiler for CUDA applications.
description: |
Compiler for CUDA applications.
doc_url: https://docs.nvidia.com/cuda/index.html
about:
home: https://developer.nvidia.com/cuda-toolkit
license_file: LICENSE
license: LicenseRef-NVIDIA-End-User-License-Agreement
license_url: https://docs.nvidia.com/cuda/eula/index.html
summary: Compiler for CUDA applications.
description: |
Compiler for CUDA applications.
doc_url: https://docs.nvidia.com/cuda/index.html
extra:
feedstock-name: cuda-nvcc-impl
recipe-maintainers:
- conda-forge/cuda