Skip to content

Commit

Permalink
new docker version fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ssheorey committed Aug 6, 2024
1 parent a57c6f6 commit bbdc52f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -427,12 +427,12 @@ if(BUILD_CUDA_MODULE)
message(STATUS "Using CUDA architectures: ${CMAKE_CUDA_ARCHITECTURES}")
endif()
else()
execute_process(COMMAND nvidia-smi RESULT_VARIABLE HAVE_NVIDIA_GPU)
if (HAVE_NVIDIA_GPU)
execute_process(COMMAND nvidia-smi RESULT_VARIABLE NVIDIA_CHECK OUTPUT_QUIET)
if (NVIDIA_CHECK EQUAL 0)
message(STATUS "Building with native CUDA architecture.")
set(CMAKE_CUDA_ARCHITECTURES native)
else()
message(WARNING "No CUDA GPU detected. Building with default CUDA architecture.")
message(WARNING "No CUDA GPU detected. Building with CMake default CUDA architecture.")
endif()
endif()
enable_language(CUDA)
Expand Down
3 changes: 0 additions & 3 deletions docker/docker_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ openblas_build() {

pushd "${HOST_OPEN3D_ROOT}"
docker build \
--progress plain \
--build-arg BASE_IMAGE="${BASE_IMAGE}" \
--build-arg CONDA_SUFFIX="${CONDA_SUFFIX}" \
--build-arg CMAKE_VERSION="${CMAKE_VERSION}" \
Expand Down Expand Up @@ -199,7 +198,6 @@ cuda_wheel_build() {

pushd "${HOST_OPEN3D_ROOT}"
docker build \
--progress plain \
--build-arg BASE_IMAGE="${BASE_IMAGE}" \
--build-arg DEVELOPER_BUILD="${DEVELOPER_BUILD}" \
--build-arg CCACHE_TAR_NAME="${CCACHE_TAR_NAME}" \
Expand Down Expand Up @@ -238,7 +236,6 @@ ci_build() {

pushd "${HOST_OPEN3D_ROOT}"
docker build \
--progress plain \
--build-arg BASE_IMAGE="${BASE_IMAGE}" \
--build-arg DEVELOPER_BUILD="${DEVELOPER_BUILD}" \
--build-arg CCACHE_TAR_NAME="${CCACHE_TAR_NAME}" \
Expand Down

0 comments on commit bbdc52f

Please sign in to comment.