forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
38 lines (28 loc) · 1.16 KB
/
config.py
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
from jetson_containers import L4T_VERSION, CUDA_ARCHITECTURES
def build_cudf(version, arrow='arrow', repo='dusty-nv/cudf', requires=None, default=False):
cudf = package.copy()
cudf['name'] = f'cudf:{version}'
cudf['group'] = 'rapids'
cudf['notes'] = 'installed under `/usr/local`'
cudf['build_args'] = {
'CUDF_REPO': repo,
'CUDF_VERSION': f'v{version}',
'CUDF_CMAKE_CUDA_ARCHITECTURES': ';'.join([str(x) for x in CUDA_ARCHITECTURES]),
}
cudf['test'] = ['test_cudf.py', 'test_dask.py', 'test_csv.py']
cudf['depends'] = ['cuda', 'cmake', 'python', 'cupy', 'numba', 'protobuf:apt']
if L4T_VERSION.major >= 36:
cudf['dockerfile'] = 'Dockerfile.jp6'
cudf['depends'].extend(['cuda-python', arrow])
cudf['test'].append('test_pandas.py')
else:
cudf['dockerfile'] = 'Dockerfile.jp5'
if default:
cudf['alias'] = 'cudf'
if requires:
cudf['requires'] = requires
return cudf
package = [
build_cudf('23.10.03', 'arrow:12.0.1', requires='>=36', default=True),
build_cudf('21.10.02', requires='==35.*', default=True)
]