Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Libraries/hipTensor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,19 @@ include(CTest)
file(RELATIVE_PATH folder_bin ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/${folder_bin})

# see https://rocm.docs.amd.com/projects/hipTensor/en/latest/install/installation.html#gpu-support
set(HIPTENSOR_SUPPORTED_ARCH gfx908 gfx90a gfx942 gfx950)
find_package(hiptensor)

# see https://rocm.docs.amd.com/projects/hipTensor/en/latest/install/installation.html#gpu-support
foreach(ARCH ${CMAKE_HIP_ARCHITECTURES})
if(NOT ARCH IN_LIST HIPTENSOR_SUPPORTED_ARCH)
message(STATUS "hipTensor does not support architecture: ${ARCH}, not building hipTensor examples")
hiptensor_is_supported_architecture(${ARCH} IS_SUPPORTED)
if(NOT IS_SUPPORTED)
message(WARNING "hipTensor does not support architecture: ${ARCH}, not building hipTensor examples")
return()
endif()
endforeach()

if(CMAKE_SYSTEM_NAME MATCHES "Windows")
message(STATUS "hipTensor examples are only available on Linux")
message(WARNING "hipTensor examples are only available on Linux")
return()
else()
set(ROCM_ROOT
Expand All @@ -50,7 +51,6 @@ endif()

list(APPEND CMAKE_PREFIX_PATH "${ROCM_ROOT}")

find_package(hiptensor)
if(NOT hiptensor_FOUND)
message(
STATUS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ endif()

enable_language(${ROCM_EXAMPLES_GPU_LANGUAGE})

# see https://rocm.docs.amd.com/projects/hipTensor/en/latest/install/installation.html#gpu-support
set(HIPTENSOR_SUPPORTED_ARCH gfx908 gfx90a gfx942 gfx950)
find_package(hiptensor REQUIRED)

# see https://rocm.docs.amd.com/projects/hipTensor/en/latest/install/installation.html#gpu-support
foreach(ARCH ${CMAKE_HIP_ARCHITECTURES})
if(NOT ARCH IN_LIST HIPTENSOR_SUPPORTED_ARCH)
hiptensor_is_supported_architecture(${ARCH} IS_SUPPORTED)
if(NOT IS_SUPPORTED)
message(FATAL_ERROR "hipTensor does not support architecture: ${ARCH}, not building hipTensor examples")
endif()
endforeach()
Expand All @@ -49,7 +50,7 @@ set(CMAKE_${ROCM_EXAMPLES_GPU_LANGUAGE}_STANDARD_REQUIRED ON)
select_hip_platform()

if(CMAKE_SYSTEM_NAME MATCHES "Windows")
message(STATUS "hipTensor examples are only available on Linux")
message(WARNING "hipTensor examples are only available on Linux")
return()
else()
set(ROCM_ROOT
Expand All @@ -61,8 +62,6 @@ endif()

list(APPEND CMAKE_PREFIX_PATH "${ROCM_ROOT}")

find_package(hiptensor REQUIRED)

add_executable(${example_name} main.cpp)
# Make example runnable using ctest
add_test(NAME ${example_name} COMMAND ${example_name})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ endif()

enable_language(${ROCM_EXAMPLES_GPU_LANGUAGE})

# see https://rocm.docs.amd.com/projects/hipTensor/en/latest/install/installation.html#gpu-support
set(HIPTENSOR_SUPPORTED_ARCH gfx908 gfx90a gfx942 gfx950)
find_package(hiptensor REQUIRED)

# see https://rocm.docs.amd.com/projects/hipTensor/en/latest/install/installation.html#gpu-support
foreach(ARCH ${CMAKE_HIP_ARCHITECTURES})
if(NOT ARCH IN_LIST HIPTENSOR_SUPPORTED_ARCH)
hiptensor_is_supported_architecture(${ARCH} IS_SUPPORTED)
if(NOT IS_SUPPORTED)
message(FATAL_ERROR "hipTensor does not support architecture: ${ARCH}, not building hipTensor examples")
endif()
endforeach()
Expand All @@ -49,7 +50,7 @@ set(CMAKE_${ROCM_EXAMPLES_GPU_LANGUAGE}_STANDARD_REQUIRED ON)
select_hip_platform()

if(CMAKE_SYSTEM_NAME MATCHES "Windows")
message(STATUS "hipTensor examples are only available on Linux")
message(WARNING "hipTensor examples are only available on Linux")
return()
else()
set(ROCM_ROOT
Expand All @@ -61,8 +62,6 @@ endif()

list(APPEND CMAKE_PREFIX_PATH "${ROCM_ROOT}")

find_package(hiptensor REQUIRED)

add_executable(${example_name} main.cpp)
# Make example runnable using ctest
add_test(NAME ${example_name} COMMAND ${example_name})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ endif()

enable_language(${ROCM_EXAMPLES_GPU_LANGUAGE})

# see https://rocm.docs.amd.com/projects/hipTensor/en/latest/install/installation.html#gpu-support
set(HIPTENSOR_SUPPORTED_ARCH gfx908 gfx90a gfx942 gfx950)
find_package(hiptensor REQUIRED)

# see https://rocm.docs.amd.com/projects/hipTensor/en/latest/install/installation.html#gpu-support
foreach(ARCH ${CMAKE_HIP_ARCHITECTURES})
if(NOT ARCH IN_LIST HIPTENSOR_SUPPORTED_ARCH)
hiptensor_is_supported_architecture(${ARCH} IS_SUPPORTED)
if(NOT IS_SUPPORTED)
message(FATAL_ERROR "hipTensor does not support architecture: ${ARCH}, not building hipTensor examples")
endif()
endforeach()
Expand All @@ -49,7 +50,7 @@ set(CMAKE_${ROCM_EXAMPLES_GPU_LANGUAGE}_STANDARD_REQUIRED ON)
select_hip_platform()

if(CMAKE_SYSTEM_NAME MATCHES "Windows")
message(STATUS "hipTensor examples are only available on Linux")
message(WARNING "hipTensor examples are only available on Linux")
return()
else()
set(ROCM_ROOT
Expand All @@ -61,8 +62,6 @@ endif()

list(APPEND CMAKE_PREFIX_PATH "${ROCM_ROOT}")

find_package(hiptensor REQUIRED)

add_executable(${example_name} main.cpp)
# Make example runnable using ctest
add_test(NAME ${example_name} COMMAND ${example_name})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ endif()

enable_language(${ROCM_EXAMPLES_GPU_LANGUAGE})

# see https://rocm.docs.amd.com/projects/hipTensor/en/latest/install/installation.html#gpu-support
set(HIPTENSOR_SUPPORTED_ARCH gfx908 gfx90a gfx942 gfx950)
find_package(hiptensor REQUIRED)

# see https://rocm.docs.amd.com/projects/hipTensor/en/latest/install/installation.html#gpu-support
foreach(ARCH ${CMAKE_HIP_ARCHITECTURES})
if(NOT ARCH IN_LIST HIPTENSOR_SUPPORTED_ARCH)
hiptensor_is_supported_architecture(${ARCH} IS_SUPPORTED)
if(NOT IS_SUPPORTED)
message(FATAL_ERROR "hipTensor does not support architecture: ${ARCH}, not building hipTensor examples")
endif()
endforeach()
Expand All @@ -49,7 +50,7 @@ set(CMAKE_${ROCM_EXAMPLES_GPU_LANGUAGE}_STANDARD_REQUIRED ON)
select_hip_platform()

if(CMAKE_SYSTEM_NAME MATCHES "Windows")
message(STATUS "hipTensor examples are only available on Linux")
message(WARNING "hipTensor examples are only available on Linux")
return()
else()
set(ROCM_ROOT
Expand All @@ -61,8 +62,6 @@ endif()

list(APPEND CMAKE_PREFIX_PATH "${ROCM_ROOT}")

find_package(hiptensor REQUIRED)

add_executable(${example_name} main.cpp)
# Make example runnable using ctest
add_test(NAME ${example_name} COMMAND ${example_name})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ endif()

enable_language(${ROCM_EXAMPLES_GPU_LANGUAGE})

# see https://rocm.docs.amd.com/projects/hipTensor/en/latest/install/installation.html#gpu-support
set(HIPTENSOR_SUPPORTED_ARCH gfx908 gfx90a gfx942 gfx950)
find_package(hiptensor REQUIRED)

# see https://rocm.docs.amd.com/projects/hipTensor/en/latest/install/installation.html#gpu-support
foreach(ARCH ${CMAKE_HIP_ARCHITECTURES})
if(NOT ARCH IN_LIST HIPTENSOR_SUPPORTED_ARCH)
hiptensor_is_supported_architecture(${ARCH} IS_SUPPORTED)
if(NOT IS_SUPPORTED)
message(FATAL_ERROR "hipTensor does not support architecture: ${ARCH}, not building hipTensor examples")
endif()
endforeach()
Expand All @@ -49,7 +50,7 @@ set(CMAKE_${ROCM_EXAMPLES_GPU_LANGUAGE}_STANDARD_REQUIRED ON)
select_hip_platform()

if(CMAKE_SYSTEM_NAME MATCHES "Windows")
message(STATUS "hipTensor examples are only available on Linux")
message(WARNING "hipTensor examples are only available on Linux")
return()
else()
set(ROCM_ROOT
Expand All @@ -61,8 +62,6 @@ endif()

list(APPEND CMAKE_PREFIX_PATH "${ROCM_ROOT}")

find_package(hiptensor REQUIRED)

add_executable(${example_name} main.cpp)
# Make example runnable using ctest
add_test(NAME ${example_name} COMMAND ${example_name})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ endif()

enable_language(${ROCM_EXAMPLES_GPU_LANGUAGE})

# see https://rocm.docs.amd.com/projects/hipTensor/en/latest/install/installation.html#gpu-support
set(HIPTENSOR_SUPPORTED_ARCH gfx908 gfx90a gfx942 gfx950)
find_package(hiptensor REQUIRED)

# see https://rocm.docs.amd.com/projects/hipTensor/en/latest/install/installation.html#gpu-support
foreach(ARCH ${CMAKE_HIP_ARCHITECTURES})
if(NOT ARCH IN_LIST HIPTENSOR_SUPPORTED_ARCH)
hiptensor_is_supported_architecture(${ARCH} IS_SUPPORTED)
if(NOT IS_SUPPORTED)
message(FATAL_ERROR "hipTensor does not support architecture: ${ARCH}, not building hipTensor examples")
endif()
endforeach()
Expand All @@ -49,7 +50,7 @@ set(CMAKE_${ROCM_EXAMPLES_GPU_LANGUAGE}_STANDARD_REQUIRED ON)
select_hip_platform()

if(CMAKE_SYSTEM_NAME MATCHES "Windows")
message(STATUS "hipTensor examples are only available on Linux")
message(WARNING "hipTensor examples are only available on Linux")
return()
else()
set(ROCM_ROOT
Expand All @@ -61,8 +62,6 @@ endif()

list(APPEND CMAKE_PREFIX_PATH "${ROCM_ROOT}")

find_package(hiptensor REQUIRED)

add_executable(${example_name} main.cpp)
# Make example runnable using ctest
add_test(NAME ${example_name} COMMAND ${example_name})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ endif()

enable_language(${ROCM_EXAMPLES_GPU_LANGUAGE})

# see https://rocm.docs.amd.com/projects/hipTensor/en/latest/install/installation.html#gpu-support
set(HIPTENSOR_SUPPORTED_ARCH gfx908 gfx90a gfx942 gfx950)
find_package(hiptensor REQUIRED)

# see https://rocm.docs.amd.com/projects/hipTensor/en/latest/install/installation.html#gpu-support
foreach(ARCH ${CMAKE_HIP_ARCHITECTURES})
if(NOT ARCH IN_LIST HIPTENSOR_SUPPORTED_ARCH)
hiptensor_is_supported_architecture(${ARCH} IS_SUPPORTED)
if(NOT IS_SUPPORTED)
message(FATAL_ERROR "hipTensor does not support architecture: ${ARCH}, not building hipTensor examples")
endif()
endforeach()
Expand All @@ -49,7 +50,7 @@ set(CMAKE_${ROCM_EXAMPLES_GPU_LANGUAGE}_STANDARD_REQUIRED ON)
select_hip_platform()

if(CMAKE_SYSTEM_NAME MATCHES "Windows")
message(STATUS "hipTensor examples are only available on Linux")
message(WARNING "hipTensor examples are only available on Linux")
return()
else()
set(ROCM_ROOT
Expand All @@ -61,8 +62,6 @@ endif()

list(APPEND CMAKE_PREFIX_PATH "${ROCM_ROOT}")

find_package(hiptensor REQUIRED)

add_executable(${example_name} main.cpp)
# Make example runnable using ctest
add_test(NAME ${example_name} COMMAND ${example_name})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ endif()

enable_language(${ROCM_EXAMPLES_GPU_LANGUAGE})

# see https://rocm.docs.amd.com/projects/hipTensor/en/latest/install/installation.html#gpu-support
set(HIPTENSOR_SUPPORTED_ARCH gfx908 gfx90a gfx942 gfx950)
find_package(hiptensor REQUIRED)

# see https://rocm.docs.amd.com/projects/hipTensor/en/latest/install/installation.html#gpu-support
foreach(ARCH ${CMAKE_HIP_ARCHITECTURES})
if(NOT ARCH IN_LIST HIPTENSOR_SUPPORTED_ARCH)
hiptensor_is_supported_architecture(${ARCH} IS_SUPPORTED)
if(NOT IS_SUPPORTED)
message(FATAL_ERROR "hipTensor does not support architecture: ${ARCH}, not building hipTensor examples")
endif()
endforeach()
Expand All @@ -49,7 +50,7 @@ set(CMAKE_${ROCM_EXAMPLES_GPU_LANGUAGE}_STANDARD_REQUIRED ON)
select_hip_platform()

if(CMAKE_SYSTEM_NAME MATCHES "Windows")
message(STATUS "hipTensor examples are only available on Linux")
message(WARNING "hipTensor examples are only available on Linux")
return()
else()
set(ROCM_ROOT
Expand All @@ -61,8 +62,6 @@ endif()

list(APPEND CMAKE_PREFIX_PATH "${ROCM_ROOT}")

find_package(hiptensor REQUIRED)

add_executable(${example_name} main.cpp)
# Make example runnable using ctest
add_test(NAME ${example_name} COMMAND ${example_name})
Expand Down
11 changes: 5 additions & 6 deletions Libraries/hipTensor/contraction/scale/bf16_f32/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ endif()

enable_language(${ROCM_EXAMPLES_GPU_LANGUAGE})

# see https://rocm.docs.amd.com/projects/hipTensor/en/latest/install/installation.html#gpu-support
set(HIPTENSOR_SUPPORTED_ARCH gfx908 gfx90a gfx942 gfx950)
find_package(hiptensor REQUIRED)

# see https://rocm.docs.amd.com/projects/hipTensor/en/latest/install/installation.html#gpu-support
foreach(ARCH ${CMAKE_HIP_ARCHITECTURES})
if(NOT ARCH IN_LIST HIPTENSOR_SUPPORTED_ARCH)
hiptensor_is_supported_architecture(${ARCH} IS_SUPPORTED)
if(NOT IS_SUPPORTED)
message(FATAL_ERROR "hipTensor does not support architecture: ${ARCH}, not building hipTensor examples")
endif()
endforeach()
Expand All @@ -49,7 +50,7 @@ set(CMAKE_${ROCM_EXAMPLES_GPU_LANGUAGE}_STANDARD_REQUIRED ON)
select_hip_platform()

if(CMAKE_SYSTEM_NAME MATCHES "Windows")
message(STATUS "hipTensor examples are only available on Linux")
message(WARNING "hipTensor examples are only available on Linux")
return()
else()
set(ROCM_ROOT
Expand All @@ -61,8 +62,6 @@ endif()

list(APPEND CMAKE_PREFIX_PATH "${ROCM_ROOT}")

find_package(hiptensor REQUIRED)

add_executable(${example_name} main.cpp)
# Make example runnable using ctest
add_test(NAME ${example_name} COMMAND ${example_name})
Expand Down
11 changes: 5 additions & 6 deletions Libraries/hipTensor/contraction/scale/cf32_cf32/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ endif()

enable_language(${ROCM_EXAMPLES_GPU_LANGUAGE})

# see https://rocm.docs.amd.com/projects/hipTensor/en/latest/install/installation.html#gpu-support
set(HIPTENSOR_SUPPORTED_ARCH gfx908 gfx90a gfx942 gfx950)
find_package(hiptensor REQUIRED)

# see https://rocm.docs.amd.com/projects/hipTensor/en/latest/install/installation.html#gpu-support
foreach(ARCH ${CMAKE_HIP_ARCHITECTURES})
if(NOT ARCH IN_LIST HIPTENSOR_SUPPORTED_ARCH)
hiptensor_is_supported_architecture(${ARCH} IS_SUPPORTED)
if(NOT IS_SUPPORTED)
message(FATAL_ERROR "hipTensor does not support architecture: ${ARCH}, not building hipTensor examples")
endif()
endforeach()
Expand All @@ -49,7 +50,7 @@ set(CMAKE_${ROCM_EXAMPLES_GPU_LANGUAGE}_STANDARD_REQUIRED ON)
select_hip_platform()

if(CMAKE_SYSTEM_NAME MATCHES "Windows")
message(STATUS "hipTensor examples are only available on Linux")
message(WARNING "hipTensor examples are only available on Linux")
return()
else()
set(ROCM_ROOT
Expand All @@ -61,8 +62,6 @@ endif()

list(APPEND CMAKE_PREFIX_PATH "${ROCM_ROOT}")

find_package(hiptensor REQUIRED)

add_executable(${example_name} main.cpp)
# Make example runnable using ctest
add_test(NAME ${example_name} COMMAND ${example_name})
Expand Down
Loading
Loading