MCPcopy Create free account
hub / github.com/ROCm/clr / hiprtcGetBitcodeSize

Function hiprtcGetBitcodeSize

hipamd/src/hiprtc/hiprtc.cpp:279–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279hiprtcResult hiprtcGetBitcodeSize(hiprtcProgram prog, size_t* bitcode_size) {
280 HIPRTC_INIT_API(prog, bitcode_size);
281
282 if (bitcode_size == nullptr) {
283 HIPRTC_RETURN(HIPRTC_ERROR_INVALID_INPUT);
284 }
285
286 auto* rtcProgram = hiprtc::RTCCompileProgram::as_RTCCompileProgram(prog);
287 if (!rtcProgram->GetBitcodeSize(bitcode_size)) {
288 HIPRTC_RETURN(HIPRTC_ERROR_INVALID_PROGRAM);
289 }
290
291 HIPRTC_RETURN(HIPRTC_SUCCESS);
292}
293
294hiprtcResult hiprtcLinkCreate(unsigned int num_options, hiprtcJIT_option* options_ptr,
295 void** options_vals_pptr, hiprtcLinkState* hip_link_state_ptr) {

Callers

nothing calls this directly

Calls 1

GetBitcodeSizeMethod · 0.80

Tested by

no test coverage detected