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

Function check_gpu_streams

test/verify/main.cpp:36–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34#endif
35
36inline static void check_gpu_streams(const migraphx::program& p)
37{
38#ifdef HAVE_GPU
39 const auto* mm = p.get_main_module();
40 auto races = migraphx::gpu::analyze_streams(*mm);
41 for(auto&& race : races)
42 {
43 std::cout << "FAILED: " << std::endl;
44 std::cout << "Race condition detected for: ";
45 mm->debug_print(race.ins);
46 std::cout << "Should happen after: ";
47 mm->debug_print(race.before);
48 }
49#else
50 (void)p;
51#endif
52}
53
54static void validate_gpu(const migraphx::program& p, const migraphx::parameter_map& m)
55{

Callers 1

validate_gpuFunction · 0.85

Calls 3

get_main_moduleMethod · 0.80
analyze_streamsFunction · 0.50
debug_printMethod · 0.45

Tested by

no test coverage detected