Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 4,166
    • Issues 4,166
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • 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
  • #20252
Closed
Open
Issue created Jan 22, 2020 by Rodolfo Schulz de Lima@rodlimaContributor

FindCUDAToolkit: if some cuda shared libraries aren't found, it must look for then in lib/stubs

When you want to compile CUDA code but doesn't have the driver installed, CUDA toolkit provides some stub libraries in lib/stubs. These should be checked as last resort.

So inside function find_and_add_cuda_import_lib, one should add "stubs" as last PATH_SUFFIXES to the call find_library(CUDA_${lib_name}_LIBRARY

With this change I was able to build the project here.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking