File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -107,15 +107,15 @@ ENDIF(NOT DEFINED CMAKE_Fortran_COMPILER_SUPPORTS_F08)
107
107
#OPTION(USE_MPI "Use the MPI library for parallelization" OFF)
108
108
#OPTION(USE_OPENMP "Use OpenMP for parallelization" OFF)
109
109
110
- IF (CMAKE_Fortran_COMPILER_ID MATCHES "Cray" )
110
+ IF (CMAKE_Fortran_COMPILER_ID MATCHES "( Cray|LLVMFlang) " )
111
111
set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${HIPFORT_COMPILER_FLAGS} " )
112
- ELSE (CMAKE_Fortran_COMPILER_ID MATCHES "Cray" )
112
+ ELSE (CMAKE_Fortran_COMPILER_ID MATCHES "( Cray|LLVMFlang) " )
113
113
IF (CMAKE_Fortran_COMPILER_SUPPORTS_F08 )
114
114
set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${HIPFORT_COMPILER_FLAGS} -std=f2008" )
115
115
ELSE (CMAKE_Fortran_COMPILER_SUPPORTS_F08 )
116
116
set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${HIPFORT_COMPILER_FLAGS} -std=f2003" )
117
117
ENDIF (CMAKE_Fortran_COMPILER_SUPPORTS_F08 )
118
- ENDIF (CMAKE_Fortran_COMPILER_ID MATCHES "Cray" )
118
+ ENDIF (CMAKE_Fortran_COMPILER_ID MATCHES "( Cray|LLVMFlang) " )
119
119
120
120
# Set compile flags for DEBUG, # RELEASE, or TESTING.
121
121
INCLUDE (${CMAKE_MODULE_PATH} /SetFortranFlags.cmake )
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ if(HIP_PLATFORM STREQUAL "amd")
196
196
197
197
find_package (hipsparse PATHS ${ROCM_PATH} /opt/rocm )
198
198
if (hipsparse_FOUND )
199
- hipfort_add_component (hipsparse hip ::hipsparse )
199
+ hipfort_add_component (hipsparse roc ::hipsparse )
200
200
else ()
201
201
message (STATUS "Skipping hipfort::hipsparse target export" )
202
202
endif ()
You can’t perform that action at this time.
0 commit comments