Skip to content

Commit 952cf4f

Browse files
committed
Build nbody sample using the cuda 'devel' image
The 'devel' image contains the CUDA compile, nvcc, which is needed to build the nbody samples. Without the CUDA compiler, the nbody sample containers fail to build with the below error message: ''' CMake Error at CMakeLists.txt:5 (project): No CMAKE_CUDA_COMPILER could be found. Tell CMake where to find the compiler by setting either the environment variable "CUDACXX" or the CMake cache entry CMAKE_CUDA_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. ''' Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
1 parent 80489a3 commit 952cf4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

deployments/container/nbody/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM nvcr.io/nvidia/cuda:12.9.1-base-ubuntu22.04 AS builder
15+
FROM nvcr.io/nvidia/cuda:12.9.1-devel-ubuntu22.04 AS builder
1616

1717
ARG SAMPLE_NAME=nbody
1818
ENV SAMPLE_NAME=${SAMPLE_NAME}

0 commit comments

Comments
 (0)