Skip to content

Add CUDA architecture to CMake option when building for NVidia devices #2029

@ndgrigorian

Description

@ndgrigorian
Collaborator

Currently, DPCTL_TARGET_CUDA cmake option is binary, and doesn't allow the user to set a CUDA architecture.

This could become problematic in the future and/or for extensions which the compiler may generate code which is unusable on some architectures.

The solution is to use DPCTL_TARGET_CUDA option to allow the user to set an architecture, and if one isn't sett, to fall back to the default (sm_50 is the current default per oneAPI extension)

Activity

changed the title [-]Add CUDA architecture parameter when building for NVidia devices[/-] [+]Add CUDA architecture to CMake option when building for NVidia devices[/+] on Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @ndgrigorian@vlad-perevezentsev

    Issue actions

      Add CUDA architecture to CMake option when building for NVidia devices · Issue #2029 · IntelPython/dpctl