File tree Expand file tree Collapse file tree 5 files changed +64
-6
lines changed Expand file tree Collapse file tree 5 files changed +64
-6
lines changed Original file line number Diff line number Diff line change 40
40
simdjson_SOURCE : BUNDLED
41
41
xsimd_SOURCE : BUNDLED
42
42
geos_SOURCE : BUNDLED
43
- CUDA_VERSION : " 12.4 "
43
+ CUDA_VERSION : " 12.8 "
44
44
USE_CLANG : " ${{ inputs.use-clang && 'true' || 'false' }}"
45
45
steps :
46
46
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -52,13 +52,48 @@ services:
52
52
environment :
53
53
NUM_THREADS : 8 # default value for NUM_THREADS
54
54
CCACHE_DIR : " /velox/.ccache"
55
- EXTRA_CMAKE_FLAGS : -DVELOX_ENABLE_PARQUET=ON
55
+ EXTRA_CMAKE_FLAGS : -DVELOX_ENABLE_PARQUET=ON
56
56
-DVELOX_ENABLE_S3=ON
57
57
volumes :
58
58
- .:/velox:delegated
59
59
working_dir : /velox
60
60
command : /velox/scripts/docker-command.sh
61
61
62
+ adapters-cuda :
63
+ # Usage:
64
+ # docker-compose pull adapters-cuda or docker-compose build adapters-cuda
65
+ # or
66
+ # docker-compose run --rm adapters-cuda
67
+ # or
68
+ # docker-compose run -e NUM_THREADS=<NUMBER_OF_THREADS_TO_USE> --rm adapters-cuda
69
+ # to set the number of threads used during compilation
70
+ # scripts/adapters.dockerfile uses SHELL which is not supported for OCI image format.
71
+ # podman users must specify "--podman-build-args='--format docker'" argument.
72
+ image : ghcr.io/facebookincubator/velox-dev:adapters
73
+ build :
74
+ context : .
75
+ dockerfile : scripts/adapters.dockerfile
76
+ args :
77
+ image : ghcr.io/facebookincubator/velox-dev:centos9
78
+ environment :
79
+ NUM_THREADS : 8 # default value for NUM_THREADS
80
+ CCACHE_DIR : " /velox/.ccache"
81
+ EXTRA_CMAKE_FLAGS : -DVELOX_ENABLE_PARQUET=ON
82
+ -DVELOX_ENABLE_S3=ON
83
+ privileged : true
84
+ deploy :
85
+ resources :
86
+ reservations :
87
+ devices :
88
+ - driver : nvidia
89
+ count : 1
90
+ capabilities : [gpu]
91
+ volumes :
92
+ - .:/velox:delegated
93
+ working_dir : /velox
94
+ command : /velox/scripts/docker-command.sh
95
+
96
+
62
97
centos-cpp :
63
98
# Usage:
64
99
# docker-compose pull centos-cpp or docker-compose build centos-cpp
Original file line number Diff line number Diff line change @@ -17,8 +17,23 @@ FROM $image
17
17
18
18
COPY scripts/setup-helper-functions.sh /
19
19
COPY scripts/setup-adapters.sh /
20
- RUN mkdir build && ( cd build && source /opt/rh/gcc-toolset-12/enable && \
21
- bash /setup-adapters.sh ) && rm -rf build && dnf remove -y conda && dnf clean all
20
+ COPY scripts/setup-centos9.sh /
21
+ RUN mkdir build && \
22
+ ( \
23
+ cd build && \
24
+ source /opt/rh/gcc-toolset-12/enable && \
25
+ bash /setup-adapters.sh && \
26
+ source /setup-centos9.sh && \
27
+ install_cuda 12.8 \
28
+ ) && \
29
+ rm -rf build && dnf remove -y conda && dnf clean all
30
+
31
+ # put CUDA binaries on the PATH
32
+ ENV PATH /usr/local/cuda/bin:${PATH}
33
+
34
+ # configuration for nvidia-container-toolkit
35
+ ENV NVIDIA_VISIBLE_DEVICES all
36
+ ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
22
37
23
38
# install miniforge
24
39
RUN curl -L -o /tmp/miniforge.sh https://github.com/conda-forge/miniforge/releases/download/23.11.0-0/Mambaforge-23.11.0-0-Linux-x86_64.sh && \
Original file line number Diff line number Diff line change @@ -234,7 +234,11 @@ function install_cuda {
234
234
# See https://developer.nvidia.com/cuda-downloads
235
235
dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel9/x86_64/cuda-rhel9.repo
236
236
local dashed=" $( echo $1 | tr ' .' ' -' ) "
237
- dnf install -y cuda-nvcc-$dashed cuda-cudart-devel-$dashed cuda-nvrtc-devel-$dashed cuda-driver-devel-$dashed
237
+ dnf install -y \
238
+ cuda-compat-$dashed \
239
+ cuda-driver-devel-$dashed \
240
+ cuda-minimal-build-$dashed \
241
+ cuda-nvrtc-devel-$dashed
238
242
}
239
243
240
244
function install_geos {
Original file line number Diff line number Diff line change @@ -293,7 +293,11 @@ function install_cuda {
293
293
$SUDO apt update
294
294
fi
295
295
local dashed=" $( echo $1 | tr ' .' ' -' ) "
296
- $SUDO apt install -y cuda-nvcc-$dashed cuda-cudart-dev-$dashed cuda-nvrtc-dev-$dashed cuda-driver-dev-$dashed
296
+ $SUDO apt install -y \
297
+ cuda-compat-$dashed \
298
+ cuda-driver-dev-$dashed \
299
+ cuda-minimal-build-$dashed \
300
+ cuda-nvrtc-dev-$dashed
297
301
}
298
302
299
303
function install_geos {
You can’t perform that action at this time.
0 commit comments