biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Minor improvements to SYCL utils and related clean-up
[alexxy/gromacs.git]
/
src
/
gromacs
/
gpu_utils
/
devicebuffer_sycl.h
diff --git
a/src/gromacs/gpu_utils/devicebuffer_sycl.h
b/src/gromacs/gpu_utils/devicebuffer_sycl.h
index 97a3d53cdf38fd56bb0624afc863b53e5a6178e9..cb3277b82f4c12e60f4dd74d16042ba37aed1bad 100644
(file)
--- a/
src/gromacs/gpu_utils/devicebuffer_sycl.h
+++ b/
src/gromacs/gpu_utils/devicebuffer_sycl.h
@@
-195,6
+195,8
@@
struct EmptyClassThatIgnoresConstructorArguments
[[maybe_unused]] EmptyClassThatIgnoresConstructorArguments(Args&&... /*args*/)
{
}
+ //! Allow casting to nullptr
+ constexpr operator std::nullptr_t() const { return nullptr; }
};
} // namespace gmx::internal