-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathmeta.yaml
159 lines (150 loc) · 6.33 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
{% set name = "cuda-nvcc-split" %}
{% set version = "12.2.140" %}
{% set cuda_version = "12.2" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
# Using this license for consistent messaging with the components it relies on
url: https://developer.download.nvidia.com/compute/cuda/redist/cuda_nvcc/LICENSE.txt
sha256: 5db25d4fd138013b563f9a3d1d87f7de7df1dac014fd4cccdfbb3435a5cff761
build:
number: 0
skip: true # [osx]
skip: true # [target_platform != "linux-64" and target_platform != cross_target_platform]
outputs:
- name: cuda-nvcc
build:
skip: True # [target_platform != cross_target_platform]
requirements:
run:
- cuda-nvcc_{{ target_platform }} {{ version }}.*
# Relax build time constraints from compilers
# Constraints on compilers exist in `cuda-nvcc-impl`
- {{ c_compiler }}_{{ target_platform }}
- {{ cxx_compiler }}_{{ target_platform }}
test:
commands:
- test -f $PREFIX/bin/nvcc # [linux]
- if not exist %LIBRARY_BIN%\nvcc.exe exit 1 # [win]
about:
home: https://developer.nvidia.com/cuda-toolkit
license_file: LICENSE.txt
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
- name: cuda-nvcc_{{ cross_target_platform }}
run_exports:
strong:
- cuda-version >={{ cuda_version }},<{{ cuda_version.split(".")[0]|int + 1 }}
files:
- etc/conda/activate.d/~cuda-nvcc_activate.sh # [linux]
- etc/conda/deactivate.d/~cuda-nvcc_deactivate.sh # [linux]
- etc/conda/activate.d/~cuda-nvcc_activate.bat # [win]
- etc/conda/deactivate.d/~cuda-nvcc_deactivate.bat # [win]
requirements:
host:
- sysroot_{{ cross_target_platform }} 2.17.* # [linux]
run:
- cuda-nvcc-dev_{{ cross_target_platform }} {{ version }}.*
- cuda-cudart-dev_{{ cross_target_platform }} {{ cuda_version }}.*
- cuda-driver-dev_{{ cross_target_platform }} {{ cuda_version }}.* # [linux]
- cuda-nvcc-tools {{ version }}.*
- cuda-nvcc-impl {{ version }}.* # [target_platform == cross_target_platform]
- {{ pin_compatible("sysroot_" ~ cross_target_platform, max_pin="x.x") }} # [linux]
test:
requires:
- {{ c_compiler }}_{{ cross_target_platform }} {{ c_compiler_version }}.* # [linux]
- {{ cxx_compiler }}_{{ cross_target_platform }} {{ cxx_compiler_version }}.* # [linux]
- {{ c_compiler }}_{{ cross_target_platform }} # [win]
- {{ cxx_compiler }}_{{ cross_target_platform }} # [win]
- cmake
- ninja
- git # [linux]
files:
- test.cpp
- test.cu
- CMakeLists.txt
- run_cmake_cuda_tests.sh # [linux]
commands:
- nvcc --version
- $CXX --verbose ${CXXFLAGS} -lcuda -lcudart_static test.cpp # [linux]
- cl /Tp test.cpp /link /LIBPATH:"%CONDA_PREFIX%\Library\lib" cudart_static.lib /out:test_nvcc.exe # [win]
- nvcc --verbose test.cu
- cmake ${CMAKE_ARGS} -S . -B ./build -G=Ninja
- cmake --build ./build -v
- bash ./run_cmake_cuda_tests.sh # [linux]
- test -f $PREFIX/etc/conda/activate.d/~cuda-nvcc_activate.sh # [linux]
- test -f $PREFIX/etc/conda/deactivate.d/~cuda-nvcc_deactivate.sh # [linux]
about:
home: https://developer.nvidia.com/cuda-toolkit
license_file: LICENSE.txt
license: LicenseRef-NVIDIA-End-User-License-Agreement
license_url: https://docs.nvidia.com/cuda/eula/index.html
summary: Compiler activation scripts for CUDA applications.
description: |
Compiler for CUDA applications.
doc_url: https://docs.nvidia.com/cuda/index.html
- name: cuda-crt
build:
skip: True # [target_platform != cross_target_platform]
requirements:
run:
- cuda-crt-dev_{{ target_platform }} {{ version }}.*
- cuda-crt-tools {{ version }}.*
test:
commands:
- test -f $PREFIX/bin/crt/link.stub # [linux]
- if not exist %LIBRARY_BIN%\crt exit 1 # [win]
about:
home: https://developer.nvidia.com/cuda-toolkit
license_file: LICENSE.txt
license: LicenseRef-NVIDIA-End-User-License-Agreement
license_url: https://docs.nvidia.com/cuda/eula/index.html
summary: CUDA internal headers.
description: |
CUDA internal headers.
doc_url: https://docs.nvidia.com/cuda/index.html
- name: cuda-nvvm
build:
skip: True # [target_platform != cross_target_platform]
requirements:
run:
- cuda-nvvm-dev_{{ target_platform }} {{ version }}.*
- cuda-nvvm-tools {{ version }}.*
- cuda-nvvm-impl {{ version }}.*
test:
commands:
- test -f $PREFIX/nvvm/bin/cicc # [linux]
- test -d $PREFIX/nvvm/libdevice # [linux]
- test -d $PREFIX/nvvm/include # [linux]
- test -d $PREFIX/nvvm/lib64 # [linux]
- if not exist %LIBRARY_PREFIX%\nvvm\bin\cicc.exe exit 1 # [win]
- if not exist %LIBRARY_PREFIX%\nvvm\libdevice exit 1 # [win]
- if not exist %LIBRARY_PREFIX%\nvvm\include exit 1 # [win]
- if not exist %LIBRARY_PREFIX%\nvvm\lib exit 1 # [win]
about:
home: https://developer.nvidia.com/cuda-toolkit
license_file: LICENSE.txt
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.txt
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
recipe-maintainers:
- conda-forge/cuda