Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cmake #14

Merged
merged 3 commits into from
Feb 15, 2023
Merged

Update cmake #14

merged 3 commits into from
Feb 15, 2023

Conversation

simonpintarelli
Copy link
Member

@simonpintarelli simonpintarelli commented Feb 5, 2023

  • if exists libs/cxxopts is used as submodule, otherwise use find_package
  • rely on cxxopts as external dependency
    • Readme: user must install cxxopts from brew/apt
    • Readme: git clone instead of git cone --recursive
  • cmake use rocm provided by official find_package(rocblas)
  • set TILEDDMM_GPU_BACKEND as option with a default value
  • always install, remove TILEDMM_WITH_INSTALL cmake option
  • use TARGET_NAME_IF_EXISTS in target_link_libraries
  • Tiled-MMConfig add targets for tiledmm::cuda|rocm
  • export compile_commands.json

CMakeLists.txt Outdated
list(APPEND TILEDMM_EXTERNAL_LIBRARIES ROCBLAS::rocblas HIPLIBS::hiplibs)
list(APPEND TILEDMM_DEFINITIONS -D__HIP_PLATFORM_HCC__) # since we are not using the hcc compiler, we have to set up this explicitly
find_package(rocblas REQUIRED)
list(APPEND TILEDMM_EXTERNAL_LIBRARIES rocs::rocblas)
Copy link
Collaborator

Choose a reason for hiding this comment

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

is rocs a typo for rocm or is it on purpose?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, yes this is a typo.

@simonpintarelli simonpintarelli force-pushed the update-cmake branch 3 times, most recently from 2c00c9d to b38200f Compare February 9, 2023 19:23
- if exists libs/cxxopts is used as submodule, otherwise use find_package
- use rocm provided find rocblas
- set TILEDDMM_GPU_BACKEND as option with a default value
- always install, remove TILEDMM_WITH_INSTALL cmake option
- use TARGET_NAME_IF_EXISTS in target_link_libraries
- Tiled-MMConfig add targets for tiledmm::cuda|rocm
- export compile_commands.json
@simonpintarelli simonpintarelli marked this pull request as ready for review February 13, 2023 09:43
@simonpintarelli simonpintarelli changed the title WIP: Update cmake Update cmake Feb 13, 2023
Copy link
Collaborator

@mtaillefumier mtaillefumier left a comment

Choose a reason for hiding this comment

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

I have no objection for merging this PR. the cxxopts comment is not blocking at all

CMakeLists.txt Outdated Show resolved Hide resolved
@mtaillefumier
Copy link
Collaborator

feel free to merge it whenever you think it is ready.

- remove `--recursive` from git clone (not required anymore, since cxxopts must
be found as external dependency)
@simonpintarelli
Copy link
Member Author

feel free to merge it whenever you think it is ready.

Ok, let's wait until Marko approves it.

@kabicm
Copy link
Collaborator

kabicm commented Feb 14, 2023

Thanks Simon and Mathieu! Looks great to me!

@kabicm kabicm self-requested a review February 14, 2023 13:47
@mtaillefumier mtaillefumier merged commit b86f634 into master Feb 15, 2023
@simonpintarelli simonpintarelli deleted the update-cmake branch February 6, 2024 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants