Commit 476bacd
[SYCL] Prevent skipped GPU run from overwriting CPU output in DeviceLib/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 <steffen.larsen@intel.com>1 parent a9d8c1a commit 476bacd
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
| |||
0 commit comments