| 52 | } |
| 53 | |
| 54 | static 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 | |
| 66 | int main(int argc, const char* argv[]) |
| 67 | { |
nothing calls this directly
no test coverage detected