Skip to content

Commit 61bda4c

Browse files
test 110
1 parent b810fc8 commit 61bda4c

File tree

3 files changed

+33
-3
lines changed

3 files changed

+33
-3
lines changed

.devcontainer/CUDA/Dockerfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM nvcr.io/nvidia/cuda:12.9.1-devel-ubuntu20.04
2+
3+
RUN apt-get update
4+
RUN apt-get upgrade -y
5+
RUN apt-get install curl -y
6+
7+
ARG REINSTALL_CMAKE_VERSION_FROM_SOURCE="3.27.9"
8+
9+
# Optionally install the cmake for vcpkg
10+
COPY scripts/packages-install/reinstall-cmake.sh /tmp/
11+
12+
RUN if [ "${REINSTALL_CMAKE_VERSION_FROM_SOURCE}" != "none" ]; then \
13+
chmod +x /tmp/reinstall-cmake.sh && /tmp/reinstall-cmake.sh ${REINSTALL_CMAKE_VERSION_FROM_SOURCE}; \
14+
fi \
15+
&& rm -f /tmp/reinstall-cmake.sh
16+
17+
18+
19+
# [Optional] Uncomment this section to install additional vcpkg ports.
20+
# RUN su vscode -c "${VCPKG_ROOT}/vcpkg install <your-port-name-here>"
21+
22+
# [Optional] Uncomment this section to install additional packages.
23+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
24+
# && apt-get -y install --no-install-recommends <your-package-list-here>

.devcontainer/CUDA/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"name": "CUDA",
55
"build": {
66
"context": "../..",
7-
"dockerfile": "../../Dockerfile"
7+
"dockerfile": "Dockerfile"
88
},
99

1010
"runArgs": [

Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,15 @@ RUN if [ "${REINSTALL_CMAKE_VERSION_FROM_SOURCE}" != "none" ]; then \
2222
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
2323
# && apt-get -y install --no-install-recommends <your-package-list-here>
2424

25-
WORKDIR build
25+
WORKDIR /app/tensor-array
26+
COPY src/ /src/
27+
COPY CMakeLists.txt /
28+
COPY Config.cmake.in /
29+
WORKDIR /app/tensor-array
30+
31+
WORKDIR /tensor-array/build
2632

2733
RUN cmake ..
2834
RUN make install
2935

30-
WORKDIR .
36+
WORKDIR /app/tensor-array

0 commit comments

Comments
 (0)