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

Function TEST_CASE

test/gpu/context_serialize.cpp:31–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29#include "test.hpp"
30
31TEST_CASE(gpu_context_serialize)
32{
33 migraphx::context ctx = migraphx::gpu::context{0, 3};
34
35 auto v = ctx.to_value();
36 EXPECT(v.size() == 2);
37
38 EXPECT(v.contains("events"));
39 EXPECT(v.at("events").without_key().to<std::size_t>() == 0);
40
41 EXPECT(v.contains("streams"));
42 EXPECT(v.at("streams").without_key().to<std::size_t>() == 3);
43
44 migraphx::gpu::context g_ctx;
45 g_ctx.from_value(v);
46
47 auto v1 = g_ctx.to_value();
48 EXPECT(v == v1);
49}
50
51TEST_CASE(context_queue)
52{

Callers

nothing calls this directly

Calls 7

without_keyMethod · 0.80
atMethod · 0.80
to_valueMethod · 0.45
sizeMethod · 0.45
containsMethod · 0.45
from_valueMethod · 0.45
get_queueMethod · 0.45

Tested by

no test coverage detected