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

Function validate_gpu

test/verify/main.cpp:54–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54static void validate_gpu(const migraphx::program& p, const migraphx::parameter_map& m)
55{
56 check_gpu_streams(p);
57
58 // Ensure the program doesn't modify the context in a dry run
59 auto ctx = p.get_context();
60 assert(&ctx != &p.get_context());
61 EXPECT(is_shared(ctx, p.get_context()));
62 p.dry_run(m);
63 EXPECT(is_shared(ctx, p.get_context()));
64}
65
66int main(int argc, const char* argv[])
67{

Callers

nothing calls this directly

Calls 3

check_gpu_streamsFunction · 0.85
dry_runMethod · 0.80
get_contextMethod · 0.45

Tested by

no test coverage detected