Skip to content

Commit 216c68b

Browse files
authored
Merge pull request #1252 from rapidsai/branch-23.08
[RELEASE] cuspatial v23.08
2 parents 7b3284a + 0cd7c34 commit 216c68b

File tree

235 files changed

+17970
-2359
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

235 files changed

+17970
-2359
lines changed

.devcontainer/Dockerfile

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,33 @@
11
# syntax=docker/dockerfile:1.5
22

3-
ARG CUDA=11.8
3+
ARG CUDA=12.0
44
ARG LLVM=16
5-
ARG RAPIDS=23.06
5+
ARG RAPIDS=23.08
66
ARG DISTRO=ubuntu22.04
77
ARG REPO=rapidsai/devcontainers
88

99
ARG PYTHON_PACKAGE_MANAGER=conda
1010

1111
FROM ${REPO}:${RAPIDS}-cpp-llvm${LLVM}-cuda${CUDA}-${DISTRO} as pip-base
1212

13-
FROM ${REPO}:${RAPIDS}-cpp-llvm${LLVM}-cuda${CUDA}-mambaforge-${DISTRO} as conda-base
13+
FROM ${REPO}:${RAPIDS}-cpp-mambaforge-${DISTRO} as conda-base
14+
15+
COPY --from=pip-base /etc/skel/.config/clangd/config.yaml /etc/skel/.config/clangd/config.yaml
1416

1517
FROM ${PYTHON_PACKAGE_MANAGER}-base
1618

19+
ARG CUDA
20+
ENV CUDAARCHS="RAPIDS"
21+
ENV CUDA_VERSION="${CUDA_VERSION:-${CUDA}}"
22+
1723
ARG PYTHON_PACKAGE_MANAGER
1824
ENV PYTHON_PACKAGE_MANAGER="${PYTHON_PACKAGE_MANAGER}"
1925

20-
USER coder
21-
22-
RUN /bin/bash -c 'mkdir -m 0755 -p ~/.{aws,cache,conda,config/pip,local}'
23-
24-
WORKDIR /home/coder/
25-
2626
ENV PYTHONSAFEPATH="1"
2727
ENV PYTHONUNBUFFERED="1"
2828
ENV PYTHONDONTWRITEBYTECODE="1"
2929

3030
ENV SCCACHE_REGION="us-east-2"
3131
ENV SCCACHE_BUCKET="rapids-sccache-devs"
3232
ENV VAULT_HOST="https://vault.ops.k8s.rapids.ai"
33-
3433
ENV HISTFILE="/home/coder/.cache/._bash_history"

.devcontainer/README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,18 @@ $ .devcontainer/launch.sh unified pip
8787

8888
#### Isolated mode
8989

90-
`.devcontainer/launch.sh isolated` launches the devcontainer without the deps/repo bind mounts, and instead contains a unique copy of the `cuspatial` source in the container's file system.
90+
`.devcontainer/launch.sh isolated` launches the devcontainer without the deps/repo bind mounts, and instead contains a unique copy of the `cuspatial` source in a Docker [volume](https://docs.docker.com/storage/volumes/).
9191

9292
Use this mode to launch multiple isolated development containers that can be checked out to separate branches of `cuspatial`.
9393

94-
**Be sure to push any commits you want to persist. Once this container is removed, any unpushed changes will be lost!**
94+
The Docker volume persists after the devcontainer is removed, ensuring you don't pending lose work by accidentally removing the devcontainer.
95+
96+
However, you will need to manually remove the volume once you've committed and pushed your changes:
97+
98+
* Use the [`docker volume ls`](https://docs.docker.com/engine/reference/commandline/volume_ls/) command to list all volumes
99+
* Use [`docker volume rm`](https://docs.docker.com/engine/reference/commandline/volume_rm/) or [`docker volume prune`](https://docs.docker.com/engine/reference/commandline/volume_prune/) to clean up unused volumes
100+
101+
Alternatively, use the "Dev Volumes" tab of the VSCode Dev Containers extension to view and remove unused volumes.
95102

96103
Examples:
97104
```bash

.devcontainer/conda/devcontainer.json

Lines changed: 0 additions & 63 deletions
This file was deleted.

.devcontainer/conda/isolated/.devcontainer/devcontainer.json

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"context": "${localWorkspaceFolder}/.devcontainer",
66
"dockerfile": "${localWorkspaceFolder}/.devcontainer/Dockerfile",
77
"args": {
8-
"CUDA": "11.8",
8+
"CUDA": "12.0",
99
"LLVM": "16",
1010
"PYTHON_PACKAGE_MANAGER": "conda"
1111
}
@@ -15,7 +15,7 @@
1515
},
1616

1717
"features": {
18-
"ghcr.io/rapidsai/devcontainers/features/rapids-build-utils:23.6": {}
18+
"ghcr.io/rapidsai/devcontainers/features/rapids-build-utils:23.8": {}
1919
},
2020

2121
"overrideFeatureInstallOrder": [
@@ -27,10 +27,8 @@
2727
],
2828

2929
"updateContentCommand": [
30-
"/bin/bash", "-c", "cp -ar /workspaces/${localWorkspaceFolderBasename} /home/coder/${localWorkspaceFolderBasename} && rapids-make-vscode-workspace --update"
30+
"/bin/bash", "-c", "sudo chown -R $(id -u):$(id -g) /home/coder/${localWorkspaceFolderBasename} && mkdir -m 0755 -p ~/.config/clangd && cp -n /etc/skel/.config/clangd/config.yaml ~/.config/clangd/config.yaml && cp -ar /workspaces/${localWorkspaceFolderBasename} /home/coder/ && rapids-make-vscode-workspace --update"
3131
],
32-
"postCreateCommand": ["rapids-make-vscode-workspace", "--update"],
33-
"postAttachCommand": ["rapids-make-conda-env"],
3432

3533
"containerEnv": {
3634
"DEFAULT_CONDA_ENV": "rapids"
@@ -42,23 +40,53 @@
4240
"source=${localWorkspaceFolder}/../.aws,target=/home/coder/.aws,type=bind,consistency=consistent",
4341
"source=${localWorkspaceFolder}/../.cache,target=/home/coder/.cache,type=bind,consistency=consistent",
4442
"source=${localWorkspaceFolder}/../.config,target=/home/coder/.config,type=bind,consistency=consistent",
45-
"source=${localWorkspaceFolder}/../.conda/pkgs,target=/home/coder/.conda/pkgs,type=bind,consistency=consistent"
43+
"source=${localWorkspaceFolder}/../.conda/pkgs,target=/home/coder/.conda/pkgs,type=bind,consistency=consistent",
44+
"source=${localWorkspaceFolderBasename}-conda-isolated-${devcontainerId},target=/home/coder/${localWorkspaceFolderBasename},type=volume"
4645
],
4746

4847
"customizations": {
4948
"vscode": {
5049
"extensions": [
50+
"llvm-vs-code-extensions.vscode-clangd",
5151
"mutantdino.resourcemonitor",
52+
"ms-vscode.cpptools",
53+
"nvidia.nsight-vscode-edition",
54+
"seaube.clangformat",
5255
"tamasfe.even-better-toml"
5356
],
5457
"settings": {
58+
"C_Cpp.vcpkg.enabled": false,
59+
"C_Cpp.formatting": "disabled",
60+
"C_Cpp.autocomplete": "disabled",
61+
"C_Cpp.errorSquiggles": "disabled",
62+
"C_Cpp.intelliSenseEngine": "disabled",
63+
"C_Cpp.configurationWarnings": "disabled",
64+
"C_Cpp.autoAddFileAssociations": false,
65+
"clang-format.fallbackStyle": "none",
5566
"files.trimFinalNewlines": true,
5667
"files.insertFinalNewline": true,
5768
"files.trimTrailingWhitespace": true,
69+
"files.associations": {
70+
"*.cu": "cuda-cpp",
71+
"*.cuh": "cuda-cpp",
72+
"**/libcudacxx/include/**/*": "cpp",
73+
"**/libcudacxx-src/include/**/*": "cpp"
74+
},
5875
"files.watcherExclude": {
76+
"**/build/**": true,
77+
"**/_skbuild/**": true,
5978
"**/target/**": true
6079
},
61-
"python.linting.flake8Enabled": true
80+
"python.linting.flake8Enabled": true,
81+
"[c]": {
82+
"editor.defaultFormatter": "seaube.clangformat"
83+
},
84+
"[cpp]": {
85+
"editor.defaultFormatter": "seaube.clangformat"
86+
},
87+
"[cuda-cpp]": {
88+
"editor.defaultFormatter": "seaube.clangformat"
89+
}
6290
}
6391
}
6492
}

.devcontainer/conda/single/.devcontainer/devcontainer.json

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"shutdownAction": "stopContainer",
3+
4+
"build": {
5+
"context": "${localWorkspaceFolder}/.devcontainer",
6+
"dockerfile": "${localWorkspaceFolder}/.devcontainer/Dockerfile",
7+
"args": {
8+
"CUDA": "12.0",
9+
"LLVM": "16",
10+
"PYTHON_PACKAGE_MANAGER": "conda"
11+
}
12+
},
13+
"hostRequirements": {
14+
"gpu": true
15+
},
16+
17+
"features": {
18+
"ghcr.io/rapidsai/devcontainers/features/rapids-build-utils:23.8": {}
19+
},
20+
21+
"overrideFeatureInstallOrder": [
22+
"ghcr.io/rapidsai/devcontainers/features/rapids-build-utils"
23+
],
24+
25+
"initializeCommand": [
26+
"/bin/bash", "-c", "mkdir -m 0755 -p ${localWorkspaceFolder}/../.{aws,cache,config,conda/pkgs,conda/${localWorkspaceFolderBasename}/single}"
27+
],
28+
29+
"updateContentCommand": [
30+
"/bin/bash",
31+
"-c",
32+
"mkdir -m 0755 -p ~/.config/clangd && cp -n /etc/skel/.config/clangd/config.yaml ~/.config/clangd/config.yaml"
33+
],
34+
35+
"containerEnv": {
36+
"DEFAULT_CONDA_ENV": "rapids"
37+
},
38+
39+
"workspaceFolder": "/home/coder",
40+
"workspaceMount": "source=${localWorkspaceFolder},target=/home/coder/${localWorkspaceFolderBasename},type=bind,consistency=consistent",
41+
"mounts": [
42+
"source=${localWorkspaceFolder}/../.aws,target=/home/coder/.aws,type=bind,consistency=consistent",
43+
"source=${localWorkspaceFolder}/../.cache,target=/home/coder/.cache,type=bind,consistency=consistent",
44+
"source=${localWorkspaceFolder}/../.config,target=/home/coder/.config,type=bind,consistency=consistent",
45+
"source=${localWorkspaceFolder}/../.conda/pkgs,target=/home/coder/.conda/pkgs,type=bind,consistency=consistent",
46+
"source=${localWorkspaceFolder}/../.conda/${localWorkspaceFolderBasename}/single,target=/home/coder/.conda/envs,type=bind,consistency=consistent"
47+
],
48+
49+
"customizations": {
50+
"vscode": {
51+
"extensions": [
52+
"llvm-vs-code-extensions.vscode-clangd",
53+
"mutantdino.resourcemonitor",
54+
"ms-vscode.cpptools",
55+
"nvidia.nsight-vscode-edition",
56+
"seaube.clangformat",
57+
"tamasfe.even-better-toml"
58+
],
59+
"settings": {
60+
"C_Cpp.vcpkg.enabled": false,
61+
"C_Cpp.formatting": "disabled",
62+
"C_Cpp.autocomplete": "disabled",
63+
"C_Cpp.errorSquiggles": "disabled",
64+
"C_Cpp.intelliSenseEngine": "disabled",
65+
"C_Cpp.configurationWarnings": "disabled",
66+
"C_Cpp.autoAddFileAssociations": false,
67+
"clang-format.fallbackStyle": "none",
68+
"files.trimFinalNewlines": true,
69+
"files.insertFinalNewline": true,
70+
"files.trimTrailingWhitespace": true,
71+
"files.associations": {
72+
"*.cu": "cuda-cpp",
73+
"*.cuh": "cuda-cpp",
74+
"**/libcudacxx/include/**/*": "cpp",
75+
"**/libcudacxx-src/include/**/*": "cpp"
76+
},
77+
"files.watcherExclude": {
78+
"**/build/**": true,
79+
"**/_skbuild/**": true,
80+
"**/target/**": true
81+
},
82+
"python.linting.flake8Enabled": true,
83+
"[c]": {
84+
"editor.defaultFormatter": "seaube.clangformat"
85+
},
86+
"[cpp]": {
87+
"editor.defaultFormatter": "seaube.clangformat"
88+
},
89+
"[cuda-cpp]": {
90+
"editor.defaultFormatter": "seaube.clangformat"
91+
}
92+
}
93+
}
94+
}
95+
}

0 commit comments

Comments
 (0)