| 34 | #endif |
| 35 | |
| 36 | inline 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 | |
| 54 | static void validate_gpu(const migraphx::program& p, const migraphx::parameter_map& m) |
| 55 | { |
no test coverage detected