Use the same debug print as the rest of libomptarget plugins with the same environment control. Also drop the max queue size debugging hook as I don't believe it is still in use, can bring it back near the rest of the env handling in rtl.cpp if someone objects. That makes most of rt.h and all of utils.cpp unused. Clean that up and simplify control flow in a couple of places. Behaviour change is that debug prints that used to use the old environment variable now use the new one and print in slightly different format, and the removal of the max queue size variable. Reviewed By: pdhaliwal Differential Revision: https://reviews.llvm.org/D108784
35 lines
1.2 KiB
C++
35 lines
1.2 KiB
C++
//===--- amdgpu/impl/rt.h ----------------------------------------- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
#ifndef SRC_RUNTIME_INCLUDE_RT_H_
|
|
#define SRC_RUNTIME_INCLUDE_RT_H_
|
|
|
|
#include "hsa_api.h"
|
|
#include "impl_runtime.h"
|
|
#include "internal.h"
|
|
|
|
#include <string>
|
|
|
|
namespace core {
|
|
namespace Runtime {
|
|
hsa_status_t Memfree(void *);
|
|
hsa_status_t HostMalloc(void **ptr, size_t size,
|
|
hsa_amd_memory_pool_t MemoryPool);
|
|
|
|
} // namespace Runtime
|
|
hsa_status_t RegisterModuleFromMemory(
|
|
std::map<std::string, atl_kernel_info_t> &KernelInfoTable,
|
|
std::map<std::string, atl_symbol_info_t> &SymbolInfoTable,
|
|
void *module_bytes, size_t module_size, hsa_agent_t agent,
|
|
hsa_status_t (*on_deserialized_data)(void *data, size_t size,
|
|
void *cb_state),
|
|
void *cb_state, std::vector<hsa_executable_t> &HSAExecutables);
|
|
|
|
} // namespace core
|
|
|
|
#endif // SRC_RUNTIME_INCLUDE_RT_H_
|