Skip to content

CMakeLists - Set Compiler and std#582

Merged
kiritigowda merged 2 commits intoROCm:developfrom
kiritigowda:kg/compiler
Jul 21, 2025
Merged

CMakeLists - Set Compiler and std#582
kiritigowda merged 2 commits intoROCm:developfrom
kiritigowda:kg/compiler

Conversation

@kiritigowda
Copy link
Copy Markdown
Collaborator

No description provided.

@kiritigowda kiritigowda requested review from Copilot and r-abishek July 17, 2025 20:55
@kiritigowda kiritigowda self-assigned this Jul 17, 2025
@kiritigowda kiritigowda added enhancement New feature or request ci:precheckin labels Jul 17, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR reorganizes the CMake configuration by moving C++ standard settings to be declared before compiler selection. The changes ensure that C++ standard requirements are consistently set before determining which compiler to use across all CMakeLists.txt files.

Key changes:

  • Move CMAKE_CXX_STANDARD settings before compiler selection logic
  • Add CMAKE_CXX_EXTENSIONS ON setting consistently across all files
  • Set CMAKE_C_COMPILER to clang when amdclang++ is not available

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
CMakeLists.txt Main CMake file with reordered standard settings and compiler fallback
utilities/test_suite/HOST/CMakeLists.txt Test suite HOST build with consistent standard configuration
utilities/test_suite/HIP/CMakeLists.txt Test suite HIP build with consistent standard configuration
utilities/test_suite/CMakeLists.txt Test suite root with consistent standard configuration
utilities/rpp-unittests/OCL_NEW/CMakeLists.txt OCL unit tests with consistent standard configuration
utilities/rpp-unittests/HOST_NEW/CMakeLists.txt HOST unit tests with consistent standard configuration
utilities/rpp-unittests/HIP_NEW/CMakeLists.txt HIP unit tests with consistent standard configuration
utilities/rpp-performancetests/OCL_NEW/CMakeLists.txt OCL performance tests with consistent standard configuration
utilities/rpp-performancetests/HOST_NEW/CMakeLists.txt HOST performance tests with consistent standard configuration
utilities/rpp-performancetests/HIP_NEW/CMakeLists.txt HIP performance tests with consistent standard configuration
utilities/examples/brightness/CMakeLists.txt Brightness example with consistent standard configuration

@kiritigowda kiritigowda requested a review from rrawther July 17, 2025 20:56
@kiritigowda kiritigowda merged commit a0a4526 into ROCm:develop Jul 21, 2025
14 of 19 checks passed
@kiritigowda kiritigowda deleted the kg/compiler branch July 21, 2025 17:52
ManasaDattaT pushed a commit to ManasaDattaT/rpp that referenced this pull request Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:precheckin enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants