Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] Prevent skipped GPU run from overwriting CPU output in DeviceLib/assert.cpp #1228

Merged

Conversation

steffenlarsen
Copy link

Though the two potential runs in DeviceLib/assert.cpp are mutually exclusive, skipping the latter run (GPU) will still trigger a write
to the output file, overwriting the results from the previous (CPU) run. To avoid this, these changes first ensures the output file is cleared then makes the runs append their output to the file. Since the runs are mutually exclusive the file should at most contain the output of one expected run.

…ib/assert.cpp

Though the two potential runs in DeviceLib/assert.cpp are mutually
exclusive, skipping the latter run (GPU) will still trigger a write
to the output file, overwriting the results from the previous (CPU) run.
To avoid this, these changes first ensures the output file is cleared
then makes the runs append their output to the file. Since the runs are
mutually exclusive the file should at most contain the output of one
expected run.

Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen steffenlarsen merged commit 32f59c2 into intel:intel Sep 6, 2022
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
…ib/assert.cpp (intel#1228)

Though the two potential runs in DeviceLib/assert.cpp are mutually
exclusive, skipping the latter run (GPU) will still trigger a write
to the output file, overwriting the results from the previous (CPU) run.
To avoid this, these changes first ensures the output file is cleared
then makes the runs append their output to the file. Since the runs are
mutually exclusive the file should at most contain the output of one
expected run.

Signed-off-by: Larsen, Steffen <[email protected]>
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
…M-device_global

[CMPLRLLVM-40432] Cherry-pick branch to Disable device_global test compilation without device_image_scope
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…ib/assert.cpp (intel/llvm-test-suite#1228)

Though the two potential runs in DeviceLib/assert.cpp are mutually
exclusive, skipping the latter run (GPU) will still trigger a write
to the output file, overwriting the results from the previous (CPU) run.
To avoid this, these changes first ensures the output file is cleared
then makes the runs append their output to the file. Since the runs are
mutually exclusive the file should at most contain the output of one
expected run.

Signed-off-by: Larsen, Steffen <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants