Skip to content
Snippets Groups Projects
Commit 518d15ae authored by misaka00251's avatar misaka00251
Browse files

Update to 6.3.0

parent b9c71656
No related branches found
No related tags found
No related merge requests found
From 713dbf3170b290cc0aa4f8b3e3b7511d0ae2a4e0 Mon Sep 17 00:00:00 2001
From: misaka00251 <liuxin@iscas.ac.cn>
Date: Thu, 10 Oct 2024 13:11:53 +0800
Subject: [PATCH] Fix build on riscv64
diff --git a/clients/benchmarks/CMakeLists.txt b/clients/benchmarks/CMakeLists.txt
index 0bfd30a..e953a97 100644
--- a/clients/benchmarks/CMakeLists.txt
+++ b/clients/benchmarks/CMakeLists.txt
@@ -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}>)
diff --git a/clients/gtest/CMakeLists.txt b/clients/gtest/CMakeLists.txt
index 8352276..3a3f003 100644
--- a/clients/gtest/CMakeLists.txt
+++ b/clients/gtest/CMakeLists.txt
@@ -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 )
diff --git a/clients/samples/CMakeLists.txt b/clients/samples/CMakeLists.txt
index 2f6caea..8d09dc9 100644
--- a/clients/samples/CMakeLists.txt
+++ b/clients/samples/CMakeLists.txt
@@ -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( )
diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt
index 90a75dd..cf9a3a5 100755
--- a/library/CMakeLists.txt
+++ b/library/CMakeLists.txt
@@ -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 )
--
2.46.2
......@@ -55,8 +55,6 @@ Patch0: 0001-fixup-install-of-tensile-output.patch
#Patch1: 0001-add-gfx1103-support-for-rocBLAS.patch
Patch2: 0001-offload-compress-option.patch
Patch1000: Fix-build-on-riscv64.patch
BuildRequires: cmake
BuildRequires: rocm-cmake
BuildRequires: rocm-comgr-devel
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment