Skip to content

Commit

Permalink
Add VS Code devcontainer config
Browse files Browse the repository at this point in the history
  • Loading branch information
olsaarik committed Oct 18, 2023
1 parent 2930cda commit e90cace
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"build": {
"dockerfile": "docker/dev-cuda12.1.dockerfile",
"context": "."
},
"runArgs": ["--gpus", "all"],
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {},
},
"customizations": {
"vscode": {
"extensions": ["ms-vscode.cmake-tools"]
}
}
}
3 changes: 2 additions & 1 deletion docker/dev-cuda12.1.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ WORKDIR ${MSCCLPP_SRC_DIR}
ENV CMAKE_HOME="/tmp/cmake-${CMAKE_VERSION}-linux-x86_64" \
CMAKE_URL="https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-x86_64.tar.gz"
RUN curl -L ${CMAKE_URL} -o ${CMAKE_HOME}.tar.gz && \
tar xzf ${CMAKE_HOME}.tar.gz -C /usr/local
tar xzf ${CMAKE_HOME}.tar.gz -C /usr/local && \
rm -rf ${CMAKE_HOME}.tar.gz
ENV PATH="/usr/local/cmake-${CMAKE_VERSION}-linux-x86_64/bin:${PATH}"

# Install pytest & dependencies
Expand Down

0 comments on commit e90cace

Please sign in to comment.