Skip to content

Commit

Permalink
Add LoadModuleFromSpir for rocm executor
Browse files Browse the repository at this point in the history
  • Loading branch information
ShengYang1 committed Feb 2, 2024
1 parent 81476c5 commit f15897e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xla/stream_executor/rocm/rocm_executor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,11 @@ absl::Status GpuExecutor::LoadModuleFromHsaco(const char* hsaco,
return absl::OkStatus();
}

absl::Status GpuExecutor::LoadModuleFromSpir(const char* spir, const size_t size,
hipModule_t* module) {
LOG(FATAL) << "Feature not supported on ROCM platform (LoadModuleFromSpir)";
}

// This is a non-essential operation; if there's a failure, proceed without
// logging an error. It's nearly certain that in case of failures, we'd never
// get here in the first place; these are very low-impact routines.
Expand Down

0 comments on commit f15897e

Please sign in to comment.