-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathmeta.yaml
108 lines (101 loc) · 4.19 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
{% set name = "cuda-nvcc-split" %}
{% set version = "12.0.76" %}
{% set cuda_version = "12.0" %}
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: 12
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 }}.*
- {{ compiler('c') }}
- {{ compiler('cxx') }}
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
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:
- adibbley