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

Function TEST_CASE

test/analyze_streams.cpp:161–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159};
160
161TEST_CASE(simple_race1)
162{
163 program_model pm;
164 auto one = pm.add_literal(1);
165 auto pass1 = pm.add_instruction_stream(0, pass_op{}, one);
166 auto pass2 = pm.add_instruction_stream(1, pass_op{}, one);
167 auto pass3 = pm.add_instruction_stream(0, pass_op{}, pass1, pass2);
168 auto races = pm.analyze();
169
170 EXPECT(races.size() == 1);
171 EXPECT(races.front().ins == pass3);
172 EXPECT(races.front().before == pass2);
173}
174
175TEST_CASE(simple_race2)
176{

Callers

nothing calls this directly

Calls 7

analyzeMethod · 0.80
frontMethod · 0.80
add_return_streamMethod · 0.80
add_literalMethod · 0.45
sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected