From: Andrey Alekseenko Date: Fri, 19 Mar 2021 21:55:19 +0000 (+0300) Subject: Remove incorrect assertion for GPU timing in SYCL X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=c39a22f77d7b899f919181a49451ef642880280e;p=alexxy%2Fgromacs.git Remove incorrect assertion for GPU timing in SYCL - The expression was backwards: it was failing when timing was disabled instead of failing when it is enabled. - The expression was run on a freshly-initialized data structure, and the value of bDoTime was always overridden later, so it was not actually checking anything. Since we anyway never set bDoTime to true in SYCL build, we might as well remove this assertion here altogether. Introduced in !1296 (c4a672b93b655ff674b671fd10ebe728b2d19ec8). --- diff --git a/src/gromacs/nbnxm/nbnxm_gpu_data_mgmt.cpp b/src/gromacs/nbnxm/nbnxm_gpu_data_mgmt.cpp index c16bb77cda..53c53e2528 100644 --- a/src/gromacs/nbnxm/nbnxm_gpu_data_mgmt.cpp +++ b/src/gromacs/nbnxm/nbnxm_gpu_data_mgmt.cpp @@ -377,7 +377,6 @@ NbnxmGpu* gpu_init(const gmx::DeviceStreamManager& deviceStreamManager, nb->bUseTwoStreams = bLocalAndNonlocal; - GMX_ASSERT(!(GMX_GPU_SYCL && !nb->bDoTime), "GPU timing is not supported in SYCL"); nb->timers = new Nbnxm::GpuTimers(); snew(nb->timings, 1);