-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix parsing instances for pt inductor
add unit test for gen instances for gemms add unit tests for conv and batched gemms add unit test for preselected gemm instances apply ruff lint add license header for the unit test add inductor pytest to CI verbose pip install switch the directory before installing python packages move the inductor codegen test try yet another workdir Update Jenkinsfile The directory looks right, fixing pip module not found by invoking pip directly Update Jenkinsfile invoke pytest directly since the module is not found Update Dockerfile Install setuptools update package structure bump setuptools maybe fix data path for library sources fix library search path for conv instances fix path in pyproject definition compare path used in gen_instances with one in pyproject.toml; fix the difference
- Loading branch information
1 parent
fd46a01
commit 314d924
Showing
5 changed files
with
66 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# SPDX-License-Identifier: MIT | ||
# Copyright (c) 2018-2025, Advanced Micro Devices, Inc. All rights reserved. | ||
import logging | ||
|
||
import unittest | ||
|
||
from ck4inductor.universal_gemm.gen_instances import ( | ||
gen_ops_library as gen_gemm_ops_library, | ||
) | ||
from ck4inductor.universal_gemm.gen_instances import ( | ||
gen_ops_preselected as gen_gemm_ops_preselected, | ||
) | ||
from ck4inductor.grouped_conv_fwd.gen_instances import ( | ||
gen_conv_ops_library as gen_conv_ops_library, | ||
) | ||
from ck4inductor.batched_universal_gemm.gen_instances import ( | ||
gen_ops_library as gen_batched_gemm_ops_library, | ||
) | ||
|
||
log = logging.getLogger(__name__) | ||
|
||
|
||
class TestGenInstances(unittest.TestCase): | ||
def test_gen_gemm_instances(self): | ||
instances = gen_gemm_ops_library() | ||
|
||
log.debug("%d gemm instances from library" % len(instances)) | ||
self.assertTrue(instances) | ||
|
||
def test_preselected_gemm_instances(self): | ||
instances = gen_gemm_ops_preselected() | ||
|
||
log.debug("%d preselected gemm instances" % len(instances)) | ||
self.assertTrue(instances) | ||
|
||
def test_gen_conv_instances(self): | ||
instances = gen_conv_ops_library() | ||
|
||
log.debug("%d gemm instances from library" % len(instances)) | ||
self.assertTrue(instances) | ||
|
||
def test_gen_batched_gemm_instances(self): | ||
instances = gen_batched_gemm_ops_library() | ||
|
||
log.debug("%d gemm instances from library" % len(instances)) | ||
self.assertTrue(instances) |