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

Method createBlitProgram

rocclr/device/rocm/rocdevice.cpp:712–736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

710}
711
712bool Device::createBlitProgram() {
713 bool result = true;
714 std::string extraKernel;
715
716 if (amd::IS_HIP) {
717 if (settings().gwsInitSupported_) {
718 extraKernel = device::HipExtraSourceCode;
719 } else {
720 extraKernel = device::HipExtraSourceCodeNoGWS;
721 }
722 } else {
723 extraKernel = SchedulerSourceCode;
724 }
725
726 blitProgram_ = new BlitProgram(context_);
727 // Create blit programs
728 if (blitProgram_ == nullptr || !blitProgram_->create(this, extraKernel, "")) {
729 delete blitProgram_;
730 blitProgram_ = nullptr;
731 LogError("Couldn't create blit kernels!");
732 return false;
733 }
734
735 return result;
736}
737
738device::Program* Device::createProgram(amd::Program& owner, amd::option::Options* options) {
739 device::Program* program = new roc::Program(*this, owner);

Callers 1

createProgramMethod · 0.45

Calls 1

createMethod · 0.45

Tested by

no test coverage detected