From: Szilárd Páll Date: Mon, 12 Apr 2021 09:52:20 +0000 (+0200) Subject: Workaround for compilation with hipSYCL 0.9.1 X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=5a2a31b12591abf07000de418b1dba869573806c;p=alexxy%2Fgromacs.git Workaround for compilation with hipSYCL 0.9.1 --- diff --git a/src/gromacs/gpu_utils/devicebuffer_sycl.h b/src/gromacs/gpu_utils/devicebuffer_sycl.h index 187b7cf931..68d245337f 100644 --- a/src/gromacs/gpu_utils/devicebuffer_sycl.h +++ b/src/gromacs/gpu_utils/devicebuffer_sycl.h @@ -123,7 +123,7 @@ DeviceBuffer& DeviceBuffer::operator=(std::nullptr_t nullPtr) namespace gmx::internal { //! Shorthand alias to create a placeholder SYCL accessor with chosen data type and access mode. -template +template using PlaceholderAccessor = cl::sycl::accessor; } // namespace gmx::internal @@ -139,7 +139,7 @@ using PlaceholderAccessor = * \tparam T Type of buffer content. * \tparam mode Access mode. */ -template +template class DeviceAccessor : public gmx::internal::PlaceholderAccessor { public: @@ -212,7 +212,7 @@ struct EmptyClassThatIgnoresConstructorArguments * \tparam mode Access mode of the accessor * \tparam enabled Compile-time flag indicating whether we want to actually create an accessor. */ -template +template using OptionalAccessor = std::conditional_t, gmx::internal::EmptyClassThatIgnoresConstructorArguments>;