MCPcopy Create free account
hub / github.com/AdaptiveCpp/AdaptiveCpp / build_hip_module

Function build_hip_module

src/runtime/hip/hip_code_object.cpp:39–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39result build_hip_module(ihipModule_t *&module, int device,
40 const std::string &hip_fat_binary) {
41 // It's unclear if this is actually needed for HIP?
42 hip_device_manager::get().activate_device(device);
43
44 auto err = hipModuleLoadData(&module, hip_fat_binary.c_str());
45
46 if(err == hipSuccess)
47 return make_success();
48 else {
49 return make_error(
50 __acpp_here(),
51 error_info{"hip_executable_object: could not create module",
52 error_code{"HIP", static_cast<int>(err)}});
53 }
54}
55}
56
57hip_multipass_executable_object::~hip_multipass_executable_object() {

Callers 1

buildMethod · 0.85

Calls 4

getFunction · 0.85
make_successFunction · 0.85
make_errorFunction · 0.85
activate_deviceMethod · 0.45

Tested by

no test coverage detected