ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
_
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Variables
_
a
c
d
e
f
h
m
n
p
r
s
t
w
x
Typedefs
Enumerations
Enumerator
_
a
e
f
i
l
n
r
s
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Typedefs
_
a
c
d
i
m
o
p
r
s
t
u
v
w
Enumerations
Enumerator
a
b
c
e
i
l
m
n
o
p
r
t
u
v
w
Related Symbols
c
e
h
i
l
p
r
s
t
v
x
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
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
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Typedefs
_
a
b
c
d
e
f
i
k
m
o
p
r
s
u
v
w
x
Enumerations
_
a
c
k
l
m
n
o
x
Enumerator
_
a
c
e
f
k
l
m
n
o
s
t
x
Macros
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
include
jit
clang_stdlib
__clang_hip_runtime_wrapper.h
Go to the documentation of this file.
1
/*===---- __clang_hip_runtime_wrapper.h - HIP runtime support ---------------===
2
*
3
* Part of the LLVM Project, 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
*===-----------------------------------------------------------------------===
8
*/
9
10
/*
11
* WARNING: This header is intended to be directly -include'd by
12
* the compiler and is not supposed to be included by users.
13
*
14
*/
15
16
#ifndef __CLANG_HIP_RUNTIME_WRAPPER_H__
17
#define __CLANG_HIP_RUNTIME_WRAPPER_H__
18
19
#if __HIP__
20
21
#include <cmath>
22
#include <cstdlib>
23
#include <stdlib.h>
24
25
#define __host__ __attribute__((host))
26
#define __device__ __attribute__((device))
27
#define __global__ __attribute__((global))
28
#define __shared__ __attribute__((shared))
29
#define __constant__ __attribute__((constant))
30
31
#if __HIP_ENABLE_DEVICE_MALLOC__
32
extern
"C"
__device__
void
*__hip_malloc(
size_t
__size);
33
extern
"C"
__device__
void
*__hip_free(
void
*__ptr);
34
static
inline
__device__
void
*malloc(
size_t
__size) {
35
return
__hip_malloc(__size);
36
}
37
static
inline
__device__
void
*free(
void
*__ptr) {
return
__hip_free(__ptr); }
38
#else
39
static
inline
__device__
void
*malloc(
size_t
__size) {
40
__builtin_trap();
41
return
nullptr
;
42
}
43
static
inline
__device__
void
*free(
void
*__ptr) {
44
__builtin_trap();
45
return
nullptr
;
46
}
47
#endif
48
49
#include <
__clang_hip_libdevice_declares.h
>
50
#include <
__clang_hip_math.h
>
51
52
#if !_OPENMP || __HIP_ENABLE_CUDA_WRAPPER_FOR_OPENMP__
53
#include <
__clang_cuda_math_forward_declares.h
>
54
#include <
__clang_cuda_complex_builtins.h
>
55
56
#include <algorithm>
57
#include <complex>
58
#include <new>
59
#endif
// !_OPENMP || __HIP_ENABLE_CUDA_WRAPPER_FOR_OPENMP__
60
61
#define __CLANG_HIP_RUNTIME_WRAPPER_INCLUDED__ 1
62
63
#endif
// __HIP__
64
#endif
// __CLANG_HIP_RUNTIME_WRAPPER_H__
__clang_cuda_complex_builtins.h
__clang_cuda_math_forward_declares.h
__clang_hip_libdevice_declares.h
__clang_hip_math.h
Generated on Mon Feb 17 2025 13:12:25 for ETISS 0.8.0 by
1.9.8