-
Notifications
You must be signed in to change notification settings - Fork 85
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
Add CMake for documentation #442
base: develop
Are you sure you want to change the base?
Conversation
51ba9aa
to
5d5ff41
Compare
@feizheng10 @malcolmroberts Can I get a review for this PR? |
CMakeLists.txt
Outdated
@@ -137,6 +139,9 @@ if(BUILD_FILE_REORG_BACKWARD_COMPATIBILITY AND NOT WIN32) | |||
) | |||
endif() | |||
|
|||
# Enable documentation build | |||
option(BUILD_DOCS "Build documentation" ON) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't recall the standard... but all rocFFT specific build option should start with ROCFFT_, do we? Unless it is a rocm cmake level stuff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would think we want to make similar changes to all math libs, not just rocFFT. So IMO the generic name makes more sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be a ROCm wide build option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BUILD_DOCS should be OFF by default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG
The general idea here is definitely good - when I think ahead to wanting to making a similar change for all math libs, I'm wondering whether at least some of this should be moved into rocm-cmake so it doesn't have to be redone for each library. The root CMakeLists.txt also is prepared to fetch rocm-cmake, so doing it again in the docs dir seems redundant. @lawruble13, can you think of a better way to do this? |
cmake/Dependencies.cmake
Outdated
rocm-cmake | ||
GIT_REPOSITORY https://github.com/RadeonOpenCompute/rocm-cmake.git | ||
GIT_TAG ${rocm_cmake_tag} | ||
SOURCE_SUBDIR "DISABLE ADDING TO BUILD" # We don't really want to consume the build and test targets of ROCm CMake. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose we should consider doing something to better support this usage in rocm-cmake. Any suggestions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's standardize all rocm projects to have this cmake/Dependencies file that will download rocm-cmake.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
CMakeLists.txt
Outdated
@@ -137,6 +139,9 @@ if(BUILD_FILE_REORG_BACKWARD_COMPATIBILITY AND NOT WIN32) | |||
) | |||
endif() | |||
|
|||
# Enable documentation build | |||
option(BUILD_DOCS "Build documentation" ON) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BUILD_DOCS should be OFF by default
CMakeLists.txt
Outdated
@@ -47,6 +47,8 @@ endif() | |||
|
|||
set( ROCFFT_BUILD_SCOPE ON ) | |||
|
|||
include(GNUInstallDirs) | |||
|
|||
project( rocfft LANGUAGES CXX C ) | |||
|
|||
# This finds the rocm-cmake project, and installs it if not found |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to have only one place that rocm-cmake is downloaded
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
aac8e1b
to
058d3df
Compare
44a71ec
to
5a40b79
Compare
cmake/Dependencies.cmake
Outdated
if(NOT ROCM_FOUND) | ||
message(STATUS "ROCm CMake not found. Fetching...") | ||
set(rocm_cmake_tag | ||
"c044bb52ba85058d28afe2313be98d9fed02e293" # [email protected]. (move to 6.0 tag when released) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update to tag now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
ce449c9
to
8b1716e
Compare
@malcolmroberts shall I merge the PR into this repository? |
8b1716e
to
c44b300
Compare
Rebased. |
c44b300
to
38c71ae
Compare
Rebased. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs component looks good
@@ -11,6 +11,10 @@ Documentation for rocFFT is available at | |||
|
|||
## rocFFT 1.0.26 for ROCm 6.1.0 | |||
|
|||
### Additions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Additions | |
### Added |
Summary of proposed changes:
Add CMake support for documentation.