1 //===--- amdgpu/impl/rt.h ----------------------------------------- C++ -*-===//
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 #ifndef SRC_RUNTIME_INCLUDE_RT_H_
9 #define SRC_RUNTIME_INCLUDE_RT_H_
10 
11 #include "hsa_api.h"
12 #include "impl_runtime.h"
13 #include "internal.h"
14 
15 #include <string>
16 
17 namespace core {
18 namespace Runtime {
19 hsa_status_t Memfree(void *);
20 hsa_status_t HostMalloc(void **ptr, size_t size,
21                         hsa_amd_memory_pool_t MemoryPool);
22 
23 } // namespace Runtime
24 hsa_status_t RegisterModuleFromMemory(
25     std::map<std::string, atl_kernel_info_t> &KernelInfoTable,
26     std::map<std::string, atl_symbol_info_t> &SymbolInfoTable,
27     void *module_bytes, size_t module_size, hsa_agent_t agent,
28     hsa_status_t (*on_deserialized_data)(void *data, size_t size,
29                                          void *cb_state),
30     void *cb_state, std::vector<hsa_executable_t> &HSAExecutables);
31 
32 } // namespace core
33 
34 #endif // SRC_RUNTIME_INCLUDE_RT_H_
35