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

Add CMake HIP language support #740

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft

Conversation

cgmb
Copy link
Collaborator

@cgmb cgmb commented Jun 13, 2024

Add USE_HIPCXX option to build using CMake's support for the HIP language. This option requires CMake 3.21.3 or newer.

The rocsolver clients shouldn't need to be built as HIP, but they require rocblas_is_complex<T>, which is only provided by the rocblas headers when compiling as HIP. In the future, this could be corrected.

Note that set_source_files_properties only affects the targets declared in the same CMake file as the call to set the properties. As such, it is difficult to use together with target_sources. All uses of latter have therefore been removed. The project declaration in the clients directory has also been removed so that PROJECT_SOURCE_DIR can always be used to refer to the root directory.

Add USE_HIPCXX option to build using CMake's support for the
HIP language. This option requires CMake 3.21.3 or newer.

The rocsolver clients shouldn't need to be built as HIP, but they
require rocblas_is_complex, which is only provided by the rocblas
headers when compiling as HIP. In the future, this could be
corrected.

Note that set_source_files_properties only affects the targets declared
in the same CMake file as the call to set the properties. As such, it
is difficult to use together with target_sources. All uses of latter
have therefore been removed. The project declaration in the clients
directory has also been removed so that PROJECT_SOURCE_DIR can always
be used to refer to the root directory.
@cgmb cgmb added noOptimizations Disable optimized kernels for small sizes for some routines noExtendedCI Disable extended tests labels Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
noExtendedCI Disable extended tests noOptimizations Disable optimized kernels for small sizes for some routines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant