Currently when we synchronize the asynchronous queue for the plugins, we
ignore the return value. This is problematic because we will continue on
like nothing happened if the kernel fails.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
openmp/libomptarget/src/interface.cpp | ||
---|---|---|
415 | Prefer DoneStatusOrError. Unclear how DoneOrErr encapsulate NotDones state. | |
416 | if (!DoneOrErr.has_value()) can be more readable. | |
openmp/libomptarget/src/omptarget.cpp | ||
55 | synchronize returns OFFLOAD_SUCCESS which has value 0. if (synchronize() == OFFLOAD_SUCCESS) return isQueueEmpty(); return std::nullopt; |
openmp/libomptarget/src/interface.cpp | ||
---|---|---|
415 | Changed my mind. Shorter name is fine. | |
openmp/libomptarget/src/omptarget.cpp | ||
55 | Got unhappy GNU. /home/yeluo/opt/llvm-clang/llvm-project/openmp/libomptarget/src/omptarget.cpp: In member function 'std::optional<bool> AsyncInfoTy::isDone()': /home/yeluo/opt/llvm-clang/llvm-project/openmp/libomptarget/src/omptarget.cpp:55:11: warning: unused variable 'Result' [-Wunused-variable] 55 | if (int Result = synchronize()) | |
openmp/libomptarget/src/private.h | ||
255 | This message confused me "Error while query the async queue completion.\n" |
docs plz