aboutsummaryrefslogtreecommitdiffhomepage
path: root/hip_runtime-sys/Makefile.toml
blob: 1a1a04d1fe52d0cc59d2e522b7b36bf8a050e08d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[tasks.bindgen]
command = "bindgen"
args = [
    "include/hip_runtime_api.h",
    "-o", "src/hip_runtime_api.rs",
    "--rust-target", "1.64",
    "--no-layout-tests",
    "--no-derive-debug",
    "--default-enum-style=newtype",
    "--must-use-type", "hipError_t",
    "--allowlist-function", "hip.*",
    "--allowlist-type", "hip.*",
    "--allowlist-var", "^hip.*$",
    "--new-type-alias", "hipDeviceptr_t",
    "--", "-I/opt/rocm/include", "-D__HIP_PLATFORM_AMD__",
    "-IZ:/opt/rocm-5.7.2/include"
]