| 37 | } |
| 38 | |
| 39 | result 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 | |
| 57 | hip_multipass_executable_object::~hip_multipass_executable_object() { |
no test coverage detected