Skip to content

Commit

Permalink
remove mf16c flag as f16 intrinsics _cvtss_sh, _cvtsh_ss no longer used
Browse files Browse the repository at this point in the history
  • Loading branch information
amcamd authored and amcamd committed May 1, 2024
1 parent 325667e commit c6bc090
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 18 deletions.
8 changes: 0 additions & 8 deletions clients/benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,6 @@ if( BUILD_WITH_TENSILE )
target_link_libraries( rocblas-gemm-tune PRIVATE ${COMMON_LINK_LIBS} )
endif()

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 )
if( BUILD_WITH_TENSILE )
target_compile_options( rocblas-gemm-tune PRIVATE -mf16c )
endif()
endif()

target_compile_options(rocblas-bench PRIVATE $<$<COMPILE_LANGUAGE:CXX>:${COMMON_CXX_OPTIONS}>)
if( BUILD_WITH_TENSILE )
target_compile_options(rocblas-gemm-tune PRIVATE $<$<COMPILE_LANGUAGE:CXX>:${COMMON_CXX_OPTIONS}>)
Expand Down
4 changes: 0 additions & 4 deletions clients/gtest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,6 @@ else()
endif()
target_link_libraries( rocblas-test PRIVATE ${COMMON_LINK_LIBS} )

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( )
target_compile_options(rocblas-test PRIVATE $<$<COMPILE_LANGUAGE:CXX>:${COMMON_CXX_OPTIONS}>)

target_compile_definitions( rocblas-test PRIVATE ROCM_USE_FLOAT16 ROCBLAS_INTERNAL_API ROCBLAS_NO_DEPRECATED_WARNINGS )
Expand Down
2 changes: 0 additions & 2 deletions clients/samples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@ foreach( exe ${sample_list_all} )
)

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 )
target_compile_definitions( ${exe} PRIVATE ROCBLAS_INTERNAL_API )
endif( )

Expand Down
5 changes: 1 addition & 4 deletions library/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ########################################################################
# Copyright (C) 2016-2023 Advanced Micro Devices, Inc. All rights reserved.
# Copyright (C) 2016-2024 Advanced Micro Devices, Inc. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -60,9 +60,6 @@ function( rocblas_library_settings lib_target_ )
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)

# GCC or hip-clang needs specific flags to turn on f16c intrinsics
target_compile_options( ${lib_target_} PRIVATE -mf16c )

# Do not allow Variable Length Arrays (use unique_ptr instead)
target_compile_options( ${lib_target_} PRIVATE -Werror=vla )

Expand Down

0 comments on commit c6bc090

Please sign in to comment.