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

Function TEST_CASE

test/gpu/external_stream.cpp:57–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57TEST_CASE(test_stream_override_get)
58{
59 migraphx::gpu::context ctx{};
60 auto& stream = ctx.get_stream();
61
62 hipStream_t internal = stream.get();
63 EXPECT(internal != nullptr);
64
65 auto ext = create_external_stream();
66 stream.set_external_stream(ext.get());
67
68 EXPECT(stream.get() == ext.get());
69 EXPECT(stream.get() != internal);
70 EXPECT(stream.has_external_stream());
71
72 stream.set_external_stream(nullptr);
73
74 EXPECT(stream.get() == internal);
75 EXPECT(not stream.has_external_stream());
76}
77
78TEST_CASE(test_stream_override_get_queue)
79{

Callers

nothing calls this directly

Calls 15

create_external_streamFunction · 0.85
generate_literalFunction · 0.85
make_targetFunction · 0.85
fill_argumentFunction · 0.85
to_gpuFunction · 0.85
from_gpuFunction · 0.85
verify_dataFunction · 0.85
set_external_streamMethod · 0.80
has_external_streamMethod · 0.80
get_main_moduleMethod · 0.80
add_parameterMethod · 0.80
make_opFunction · 0.50

Tested by

no test coverage detected