MLIR-AIE
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Functions
a
b
c
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Variables
c
d
h
i
o
p
r
s
u
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
x
y
z
Typedefs
Enumerations
Enumerator
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
v
x
Functions
a
b
c
d
e
f
g
i
l
m
o
p
s
u
v
Typedefs
a
b
c
i
l
m
p
s
Enumerations
Enumerator
a
c
i
t
Macros
a
d
e
g
i
l
m
n
o
p
s
t
u
x
runtime_lib
test_lib
target.h
Go to the documentation of this file.
1
//===- target.h ------------------------------------------------*- C++ -*-===//
2
//
3
// This file is licensed under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
// (c) Copyright 2023 Advanced Micro Devices, Inc.
8
//
9
//===----------------------------------------------------------------------===//
10
11
#ifndef AIE_TARGET_H
12
#define AIE_TARGET_H
13
14
#include <list>
15
#include <vector>
16
#include <xaiengine.h>
17
18
#ifdef HSA_RUNTIME
19
#include "hsa/hsa.h"
20
#include "hsa/hsa_ext_amd.h"
21
#endif
22
23
struct
ext_mem_model_t
{
24
void
*
virtualAddr
;
25
uint64_t
physicalAddr
;
26
size_t
size
;
27
int
fd
;
// The file descriptor used during allocation
28
XAie_MemInst
MemInst
;
// LibXAIE handle if necessary. This should go away.
29
};
23
struct
ext_mem_model_t
{
…
};
30
31
struct
aie_libxaie_ctx_t
{
32
XAie_Config
AieConfigPtr
;
33
XAie_DevInst
DevInst
;
34
// Some device memory allocators need this to keep track of VA->PA mappings
35
std::list<ext_mem_model_t>
allocations
;
36
#ifdef HSA_RUNTIME
37
hsa_queue_t *cmd_queue;
38
std::vector<hsa_agent_t> agents;
39
hsa_amd_memory_pool_t global_mem_pool;
40
#endif
41
};
31
struct
aie_libxaie_ctx_t
{
…
};
42
43
#endif
aie_libxaie_ctx_t
Definition
target.h:31
aie_libxaie_ctx_t::DevInst
XAie_DevInst DevInst
Definition
target.h:33
aie_libxaie_ctx_t::AieConfigPtr
XAie_Config AieConfigPtr
Definition
target.h:32
aie_libxaie_ctx_t::allocations
std::list< ext_mem_model_t > allocations
Definition
target.h:35
ext_mem_model_t
Definition
target.h:23
ext_mem_model_t::MemInst
XAie_MemInst MemInst
Definition
target.h:28
ext_mem_model_t::fd
int fd
Definition
target.h:27
ext_mem_model_t::physicalAddr
uint64_t physicalAddr
Definition
target.h:25
ext_mem_model_t::size
size_t size
Definition
target.h:26
ext_mem_model_t::virtualAddr
void * virtualAddr
Definition
target.h:24
Generated on Tue Apr 8 2025 05:11:16 for MLIR-AIE by
1.9.8