| 153 | } |
| 154 | |
| 155 | port::Status GpuExecutor::Init(int device_ordinal, |
| 156 | DeviceOptions device_options) { |
| 157 | device_ordinal_ = device_ordinal; |
| 158 | |
| 159 | auto status = GpuDriver::Init(); |
| 160 | if (!status.ok()) { |
| 161 | return status; |
| 162 | } |
| 163 | |
| 164 | status = GpuDriver::GetDevice(device_ordinal_, &device_); |
| 165 | if (!status.ok()) { |
| 166 | return status; |
| 167 | } |
| 168 | |
| 169 | status = GpuDriver::CreateContext(device_ordinal_, device_, device_options, |
| 170 | &context_); |
| 171 | if (!status.ok()) { |
| 172 | return status; |
| 173 | } |
| 174 | |
| 175 | return GpuDriver::GetGpuISAVersion(&version_, device_); |
| 176 | } |
| 177 | |
| 178 | bool GpuExecutor::FindOnDiskForComputeCapability( |
| 179 | absl::string_view filename, absl::string_view canonical_suffix, |
no test coverage detected