Skip to content

Getting started/building from source does not make it clear what options to use for CUDA #768

@nmm0

Description

@nmm0

When using the CUDA backend, the user either needs to:

  • Set CMAKE_CXX_COMPILER to the path to nvcc wrapper
  • Set CMAKE_CUDA_COMPILER to nvcc and enable Kokkos_ENABLE_COMPILE_AS_CMAKE_LANGUAGE

The instructions at https://kokkos.org/kokkos-core-wiki/get-started/building-from-source.html do not make this clear, and seem to imply with this sentence:

For example, use hipcc for AMD GPUs, icpx for Intel GPUs, or g++ or clang++ for CPUs.

That one should set CMAKE_CXX_COMPILER to nvcc, which is incorrect

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions