Skip to content

Commit

Permalink
[wip] hsa demo
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental committed Aug 27, 2024
1 parent 3e966c9 commit 9212542
Show file tree
Hide file tree
Showing 4 changed files with 398 additions and 0 deletions.
28 changes: 28 additions & 0 deletions experimental/hsa/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2024 The IREE Authors
#
# Licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

find_package(hsa-runtime64 REQUIRED)

iree_cc_binary(
NAME
aie_hsa_dispatch_test
SRCS
aie_hsa_dispatch_test.cpp
DEPS
hsa-runtime64::hsa-runtime64
)

iree_lit_test(
NAME
aie_hsa_dispatch_lit_test
TEST_FILE
aie_hsa_dispatch_test.cpp
TOOLS
::aie_hsa_dispatch_test
FileCheck
LABELS
"hostonly"
)
Binary file added experimental/hsa/add_one.pdi
Binary file not shown.
68 changes: 68 additions & 0 deletions experimental/hsa/add_one_insts.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
06030100
00000105
00000007
00000110
00000001
00000000
0001D000
00000030
00000400
00000000
00000000
00000000
80000000
00000000
00000000
02000000
00000081
00000030
00000000
00000000
00000000
00000000
0001D004
00000000
00000001
00000000
00000000
00000000
00000000
00000000
0001D204
00000000
80000000
00000018
00000001
00000000
0001D020
00000030
00000400
00000000
00000000
00000000
80000000
00000000
00000000
02000000
00000081
00000030
00000000
00000000
00000000
00000000
0001D024
00000000
00000000
00000000
00000000
00000000
00000000
00000000
0001D214
00000000
00000001
00000018
00000080
00000010
00000000
00010100
Loading

0 comments on commit 9212542

Please sign in to comment.