Skip to content

Commit

Permalink
Merge pull request #672 from amcamd/master
Browse files Browse the repository at this point in the history
--ff-only merge hot-fix from rocBLAS/master to rocBLAS-internal/master
  • Loading branch information
amcamd authored May 7, 2021
2 parents dcca3b7 + 6e1bdfc commit 8328dcc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ if( CMAKE_CXX_COMPILER MATCHES ".*/hipcc$" )
string(REGEX MATCH "[A-Za-z]+" CXX_VERSION_STRING ${TMP_CXX_VERSION})
endif()

if( CXX_VERSION_STRING MATCHES "clang" )
if( CMAKE_CXX_COMPILER_ID MATCHES "Clang")
message( STATUS "Use hip-clang to build for amdgpu backend" )
# set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Xclang -fallow-half-arguments-and-returns" )
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__HIP_HCC_COMPAT_MODE__=1" )
Expand Down
2 changes: 1 addition & 1 deletion clients/benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ else( )
target_link_libraries( rocblas-bench PRIVATE hip::host hip::device )
endif( )

if( CMAKE_COMPILER_IS_GNUCXX OR CXX_VERSION_STRING MATCHES "clang")
if( CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# GCC or hip-clang needs specific flags to turn on f16c intrinsics
target_compile_options( rocblas-bench PRIVATE -mf16c )
endif( )
Expand Down
2 changes: 1 addition & 1 deletion clients/gtest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ add_custom_target( rocblas-test-data

add_dependencies( rocblas-test rocblas-test-data rocblas-common )

if( CMAKE_COMPILER_IS_GNUCXX OR CXX_VERSION_STRING MATCHES "clang" )
if( CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# GCC or hip-clang needs specific flag to turn on f16c intrinsics
target_compile_options( rocblas-test PRIVATE -mf16c )
endif( )
Expand Down
2 changes: 1 addition & 1 deletion clients/samples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ foreach( exe ${sample_list_all} )
#target_compile_definitions( ${exe} PRIVATE __HIP_PLATFORM_HCC__ )
endif( )

if( CMAKE_COMPILER_IS_GNUCXX OR CXX_VERSION_STRING MATCHES "clang" )
if( CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# GCC or hip-clang needs specific flags to turn on f16c intrinsics
target_compile_options( ${exe} PRIVATE -mf16c )
endif( )
Expand Down
4 changes: 2 additions & 2 deletions library/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ########################################################################
# Copyright 2016-2020 Advanced Micro Devices, Inc.
# Copyright 2016-2021 Advanced Micro Devices, Inc.
# ########################################################################

# The following helper functions wrap common cmake functions. They are
Expand Down Expand Up @@ -154,7 +154,7 @@ endif( )
set( CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "\${CPACK_PACKAGING_INSTALL_PREFIX}" "\${CPACK_PACKAGING_INSTALL_PREFIX}/include" "\${CPACK_PACKAGING_INSTALL_PREFIX}/lib" )

# Give rocblas compiled for CUDA backend a different name
if( CXX_VERSION_STRING MATCHES "clang" )
if( CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
set( package_name rocblas )
else( )
set( package_name rocblas-alt )
Expand Down

0 comments on commit 8328dcc

Please sign in to comment.