Skip to content
Merged
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
9 changes: 7 additions & 2 deletions projects/hipblaslt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -656,8 +656,13 @@ if(HIPBLASLT_INSTALL_TENSILELITE_TEST_ARTIFACTS AND NOT WIN32)
OPTIONAL
)

# TODO: Add C++ test tools (tensilelite-client, cpu-gemm-driver) when
# common/generator tests are enabled in CI.
if(TENSILELITE_ENABLE_CLIENT)
install(
TARGETS tensilelite-client
RUNTIME DESTINATION "${CMAKE_INSTALL_LIBEXECDIR}/hipblaslt/tensilelite"
COMPONENT tests
)
endif()
endif()

if(HIPBLASLT_ENABLE_CLIENT AND HIPBLASLT_ENABLE_SAMPLES)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#
# SPDX-License-Identifier: MIT
################################################################################
import pytest
import yaml
from pprint import pformat

Expand All @@ -33,10 +34,14 @@
from Tensile.SolutionStructs.Validators.MatrixInstruction import matrixInstructionToMIParameters, validateMIParameters
from Tensile.SolutionStructs.Validators.WorkGroup import validateWorkGroup

cxxCompiler = validateToolchain("amdclang++")
isaInfoMap = makeIsaInfoMap(SUPPORTED_ISA, cxxCompiler)

def test_convert_9_item_custom_kernel_config():
@pytest.fixture(scope="module")
def isa_info_map():
cxxCompiler = validateToolchain("amdclang++")
return makeIsaInfoMap(SUPPORTED_ISA, cxxCompiler)


def test_convert_9_item_custom_kernel_config(isa_info_map):
input_conf = yaml.load(
"""
ProblemType:
Expand Down Expand Up @@ -76,7 +81,7 @@ def test_convert_9_item_custom_kernel_config():
wavefrontSize,
ptype,
workgroup,
isaInfoMap,
isa_info_map,
)

input = {
Expand Down Expand Up @@ -108,7 +113,7 @@ def test_convert_9_item_custom_kernel_config():
solution.update(input_conf)
solution.update(outputConf)

assert validateMIParameters(solution, isaInfoMap, True)
assert validateMIParameters(solution, isa_info_map, True)
assert validateWorkGroup(solution)

mi4 = solution["MatrixInstruction"]
Expand All @@ -122,7 +127,7 @@ def test_convert_9_item_custom_kernel_config():
assert format9 == mi


def testConvert9ItemCustomKernelConfig():
def testConvert9ItemCustomKernelConfig(isa_info_map):

inputConf = yaml.load(
"""
Expand Down Expand Up @@ -178,7 +183,7 @@ def testConvert9ItemCustomKernelConfig():
wavefrontSize,
inputConf["ProblemType"],
workGroup,
isaInfoMap,
isa_info_map,
)

input = {
Expand Down Expand Up @@ -210,4 +215,4 @@ def testConvert9ItemCustomKernelConfig():
solution.update(inputConf)
solution.update(outputConf)

assert validateMIParameters(solution, isaInfoMap, True) == True
assert validateMIParameters(solution, isa_info_map, True) == True
Loading