Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
CMake
CMake
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,235
    • Issues 3,235
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 14
    • Merge Requests 14
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMake
  • CMakeCMake
  • Merge Requests
  • !3911

Merged
Opened Oct 11, 2019 by Konstantin Pyzhov@kpyzhovContributor

FindOpenMP: Add support for HIP clang device pass.

  • Overview 11
  • Commits 1
  • Pipelines 2
  • Changes 1

The HIP clang makes 2 passes when compiling HIP programs: the DEVICE pass and the HOST pass. For openmp, the -fopenmp option is only passed to the HOST compilation pass. Therefore, the small test that CMake uses for OpenMP detection fails to compile, and CMake reports failure to detect OpenMP support in the compiler. The suggested solution is to add check for __HIP_DEVICE_COMPILE__ macro defined by HIP clang for the DEVICE pass to the OpenMP detection test.

Topic-rename: FindOpenMP-clang-HIP-device

Edited Oct 11, 2019 by Brad King
Assignee
Assign to
Reviewer
Request review from
3.16.0
Milestone
3.16.0 (Past due)
Assign milestone
Time tracking
Reference: cmake/cmake!3911
Source branch: find-openmp-add-hip-device