Remove incorrect assertion for GPU timing in SYCL
authorAndrey Alekseenko <al42and@gmail.com>
Fri, 19 Mar 2021 21:55:19 +0000 (00:55 +0300)
committerArtem Zhmurov <zhmurov@gmail.com>
Mon, 22 Mar 2021 08:09:39 +0000 (08:09 +0000)
- 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).

src/gromacs/nbnxm/nbnxm_gpu_data_mgmt.cpp

index c16bb77cda016ee80ba6ce99ab3142306468e6ad..53c53e25282a1adcc4634316df17333dbc708a76 100644 (file)
@@ -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);