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

WIP: Feature/probinso/hipcc support #596

Open
wants to merge 70 commits into
base: develop
Choose a base branch
from

Conversation

robinson96
Copy link
Contributor

Add initial support for using CMAKE_HIP_COMPILER in cmake versions 3.21 and greater.

Differentiate between C_LIST and CXX_LIST for blt_split_source_list_by_language. (HIPCC will error if it's a c file, while cuda will just treat it as a C++ file).

SetupHIP now enables the hip language.

Add option BLT_HIP_REMOVE_HIP_COMPILE_OPTIONS to remove flags associated with pre-installed hip::device and hip-lang::device targets that are incompatible with hipcc.

@robinson96 robinson96 changed the title Feature/probinso/hipcc support WIP: Feature/probinso/hipcc support Aug 30, 2022
@@ -187,7 +187,9 @@ if (NOT BLT_LOADED)
# File extension lists used to filter sources based on languages for code checks
# and filtering Fortran sources out of cuda/hip source lists
# Note: this filtering is case-insensitive
set(BLT_C_FILE_EXTS ".cpp" ".hpp" ".cxx" ".hxx" ".c" ".h" ".cc" ".hh" ".inl" ".cu" ".cuh"
set(BLT_C_FILE_EXTS ".c" ".h"
CACHE STRING "List of known file extensions used for C/CXX sources")
Copy link
Member

Choose a reason for hiding this comment

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

Update the comment to say C rather than C/CXX. And the following comment should have CXX instead of C/CXX.

Copy link
Member

Choose a reason for hiding this comment

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

This will have pretty large user facing consequences and needs to be considered carefully.

Copy link
Member

Choose a reason for hiding this comment

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

if(${_hip_runtime_index} GREATER -1)
set(_depends_on_hip_runtime TRUE)
endif()
message("DEPENDS ON HIP ${_depends_on_hip} DEPENDS_ON_HIP_RUNTIME ${_depends_on_hip_runtime}\n\t ${arg_DEPENDS_ON}")
Copy link
Member

Choose a reason for hiding this comment

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

Is this a debug message? There are a few others like it as well.

set_source_files_properties( ${_hip_sources} PROPERTIES
LANGUAGE HIP)

# if (HIP_SEPARABLE_COMPILATION)
Copy link
Member

Choose a reason for hiding this comment

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

Can you document why this isn't being used?

chapman39 and others added 27 commits September 29, 2022 10:53
… github.com:LLNL/blt into feature/chapman39/print_target_properties_recursive
…erties_recursive

Print target properties recursively and with regular expressions
add macro to assist in checking if code snippets compile
Add BLT_CMAKE_IMPLICIT_LINK_LIBRARIES_EXCLUDE variable
V0.5.2 Release Candidate
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

7 participants