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

Function dumpCodeObject

rocclr/device/devprogram.cpp:756–765  ·  view source on GitHub ↗

================================================================================================

Source from the content-addressed store, hash-verified

754
755// ================================================================================================
756static void dumpCodeObject(const std::string& image) {
757 char fname[30];
758 static std::atomic<int> index;
759 sprintf(fname, "_code_object%04d.o", index++);
760 ClPrint(amd::LOG_DETAIL_DEBUG, amd::LOG_CODE, "Code object saved in %s\n", fname);
761 std::ofstream ofs;
762 ofs.open(fname, std::ios::binary);
763 ofs << image;
764 ofs.close();
765}
766
767// ================================================================================================
768bool Program::linkImpl(amd::option::Options* options) {

Callers 1

linkImplMethod · 0.85

Calls 2

openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected