MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / validate

Method validate

src/targets/gpu/gemm_impl.cpp:284–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282
283#ifdef MIGRAPHX_USE_ROCBLAS_TUNING_API
284 auto validate(context& ctx, const std::vector<shape>& input_shapes, int32_t solution_idx) const
285 {
286 // Create dummy arguments for the shapes, and call the overloaded method
287 std::vector<argument> input_args;
288 unsigned long seed = 0;
289 std::transform(input_shapes.begin(),
290 input_shapes.end(),
291 std::back_inserter(input_args),
292 [&](const shape& x) {
293 return to_gpu(generate_argument(x, seed++, random_mode::random));
294 });
295 return validate(ctx, input_args, solution_idx);
296 }
297
298 /**
299 * Checks a particular solution for validity by running it with the flag

Callers 1

gemm_finalize_implFunction · 0.45

Calls 6

to_gpuFunction · 0.85
generate_argumentFunction · 0.85
rocblas_invokeFunction · 0.85
transformFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected