Skip to content

Commit

Permalink
Add gfx1151 to 6.2 (#1485)
Browse files Browse the repository at this point in the history
* added gfx1151 support from 6.3
* updated version

Co-authored-by: Yoichi Yoshida <[email protected]>
  • Loading branch information
amd-garydeng and yoichiyoshida authored Oct 2, 2024
1 parent d7e802e commit 24d54ba
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
rocBLAS documentation is available at
[https://rocm.docs.amd.com/projects/rocBLAS/en/latest/index.html](https://rocm.docs.amd.com/projects/rocBLAS/en/latest/index.html).

## rocBLAS 4.2.4 for ROCm 6.2.4

### Additions

* GFX1151 Support

## rocBLAS 4.2.1 for ROCm 6.2.1

### Removals
Expand Down
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ get_os_id(OS_ID)
message (STATUS "OS detected is ${OS_ID}")

# Versioning via rocm-cmake
set ( VERSION_STRING "4.2.1" )
set ( VERSION_STRING "4.2.4" )
rocm_setup_version( VERSION ${VERSION_STRING} )

# Users may override HIP path by specifying their own in CMAKE_MODULE_PATH
Expand All @@ -111,14 +111,17 @@ list( APPEND CMAKE_PREFIX_PATH ${ROCM_PATH}/llvm ${ROCM_PATH} ${ROCM_PATH}/hip /
set( TARGET_LIST_ROCM_5.6 "gfx803;gfx900;gfx906:xnack-;gfx908:xnack-;gfx90a:xnack+;gfx90a:xnack-;gfx1010;gfx1012;gfx1030;gfx1100;gfx1101;gfx1102")
set( TARGET_LIST_ROCM_5.7 "gfx803;gfx900;gfx906:xnack-;gfx908:xnack-;gfx90a:xnack+;gfx90a:xnack-;gfx940;gfx941;gfx942;gfx1010;gfx1012;gfx1030;gfx1100;gfx1101;gfx1102")
set( TARGET_LIST_ROCM_6.0 "gfx900;gfx906:xnack-;gfx908:xnack-;gfx90a:xnack+;gfx90a:xnack-;gfx940;gfx941;gfx942;gfx1010;gfx1012;gfx1030;gfx1100;gfx1101;gfx1102")
set( TARGET_LIST_ROCM_6.2.4 "gfx900;gfx906:xnack-;gfx908:xnack-;gfx90a:xnack+;gfx90a:xnack-;gfx940;gfx941;gfx942;gfx1010;gfx1012;gfx1030;gfx1100;gfx1101;gfx1102;gfx1151")

if(ROCM_PLATFORM_VERSION)
if(${ROCM_PLATFORM_VERSION} VERSION_LESS 5.7.0)
set(SUPPORTED_TARGETS "${TARGET_LIST_ROCM_5.6}")
elseif(${ROCM_PLATFORM_VERSION} VERSION_LESS 6.0.0)
set(SUPPORTED_TARGETS "${TARGET_LIST_ROCM_5.7}")
else()
elseif(${ROCM_PLATFORM_VERSION} VERSION_LESS 6.2.4)
set(SUPPORTED_TARGETS "${TARGET_LIST_ROCM_6.0}")
else()
set(SUPPORTED_TARGETS "${TARGET_LIST_ROCM_6.2.4}")
endif()
else()
message(STATUS "ROCM Platform Version: ${ROCM_PLATFORM_VERSION} is not set, using default supported list")
Expand Down
4 changes: 4 additions & 0 deletions library/src/handle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ static Processor getActiveArch(int deviceId)
{
return Processor::gfx1102;
}
else if(deviceString.find("gfx1151") != std::string::npos)
{
return Processor::gfx1151;
}
return static_cast<Processor>(0);
}

Expand Down
3 changes: 2 additions & 1 deletion library/src/include/handle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ enum class Processor : int
gfx1035 = 1035,
gfx1100 = 1100,
gfx1101 = 1101,
gfx1102 = 1102
gfx1102 = 1102,
gfx1151 = 1151
};

// helper function in handle.cpp
Expand Down
2 changes: 1 addition & 1 deletion tensile_tag.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dbc2062dced66e4cbee8e0591d76e0a1588a4c70
81ae9537671627fe541332c0a5d953bfd6af71d6

0 comments on commit 24d54ba

Please sign in to comment.