1 //===--- amdgpu/impl/impl_runtime.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 INCLUDE_IMPL_RUNTIME_H_ 9 #define INCLUDE_IMPL_RUNTIME_H_ 10 11 #include "hsa_api.h" 12 13 extern "C" { 14 15 hsa_status_t impl_module_register_from_memory_to_place( 16 void *module_bytes, size_t module_size, int DeviceId, 17 hsa_status_t (*on_deserialized_data)(void *data, size_t size, 18 void *cb_state), 19 void *cb_state); 20 21 hsa_status_t impl_memcpy_h2d(hsa_signal_t signal, void *deviceDest, 22 void *hostSrc, size_t size, 23 hsa_agent_t device_agent, 24 hsa_amd_memory_pool_t MemoryPool); 25 26 hsa_status_t impl_memcpy_d2h(hsa_signal_t sig, void *hostDest, void *deviceSrc, 27 size_t size, hsa_agent_t device_agent, 28 hsa_amd_memory_pool_t MemoryPool); 29 } 30 31 #endif // INCLUDE_IMPL_RUNTIME_H_ 32