Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4,104
    • Issues 4,104
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 20
    • Merge requests 20
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMakeCMake
  • CMakeCMake
  • Issues
  • #22482
Closed
Open
Issue created Jul 27, 2021 by Serge Rogatch@serge.rogatch

CUDA/Clang: "No rule to make target" with clang++-12

After setting clang++-12 as the CUDA compiler, the build after CMake configuration produces an error like: make[2]: *** No rule to make target 'CMakeFiles/cudalink_exe.dir/exe2.cpp.o', needed by 'CMakeFiles/cudalink_exe.dir/sm_75.cubin'. Stop.

A reproducer is attached: cmake_clang_cuda.tar.gz

CMake version: 3.21.0 CUDA version: 11.4 Clang version: 12.0.1 OS: Ubuntu 20.04

Edited Jul 27, 2021 by Serge Rogatch
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking