================================================================================================
| 175 | |
| 176 | // ================================================================================================ |
| 177 | Program::Program(Device& device, amd::Program& owner) |
| 178 | : device::Program(device, owner), |
| 179 | rawBinary_(nullptr), |
| 180 | kernels_(nullptr), |
| 181 | codeSegGpu_(nullptr), |
| 182 | codeSegment_(nullptr), |
| 183 | maxScratchRegs_(0), |
| 184 | maxVgprs_(0), |
| 185 | executable_(nullptr), |
| 186 | loaderContext_(this) { |
| 187 | assert(device.isOnline()); |
| 188 | loader_ = amd::hsa::loader::Loader::Create(&loaderContext_); |
| 189 | isHIP_ = (owner.language() == amd::Program::HIP); |
| 190 | } |
| 191 | |
| 192 | Program::Program(NullDevice& device, amd::Program& owner) |
| 193 | : device::Program(device, owner), |