diff --git a/xla/tools/hlo_opt/gpu_specs/README.md b/xla/tools/hlo_opt/gpu_specs/README.md index 6586c2fbe3ca2..90a62a563248f 100644 --- a/xla/tools/hlo_opt/gpu_specs/README.md +++ b/xla/tools/hlo_opt/gpu_specs/README.md @@ -1,7 +1,9 @@ -The specs in this folder are obtained by calling the appropriate override of -`StreamExecutor::CreateDeviceDescription`, then turned into -`GpuDeviceInfoProto`. (E.g., for NVIDIA GPUs, we call -`CudaExecutor::CreateDeviceDescription`.) The specs are useful when compiling -with the flag `--xla_gpu_target_config_filename`. Since a hardware generation -may have several SKUs, a spec may not be identical to what we would get on a -particular machine, but it will be "close enough". +The specs in this folder are obtained by calling +`Compiler::TargetConfig::ToString()`, which turns the config into a +`GpuTargetConfigProto`, and then to a `std::string`. Most of the spec is the +device description as a proto `GpuDeviceInfoProto`. + +The specs are useful when compiling with the flag +`--xla_gpu_target_config_filename`. Since a hardware generation may have several +SKUs, a spec may not be identical to what we would get on a particular machine, +but it will be "close enough".