MCPcopy Create free account
hub / github.com/RenderKit/ospray / computeDispatchRange

Method computeDispatchRange

modules/cpu/ISPCDevice.cpp:646–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

644
645#ifdef OSPRAY_TARGET_SYCL
646sycl::nd_range<1> ISPCDevice::computeDispatchRange(
647 const size_t globalSize, const size_t workgroupSize) const
648{
649 // roundedRange global size must be at least workgroupSize
650 const size_t roundedRange =
651 std::max(size_t(1), (globalSize + workgroupSize - 1) / workgroupSize)
652 * workgroupSize;
653 return sycl::nd_range<1>(roundedRange, workgroupSize);
654}
655#endif
656
657} // namespace api

Callers 3

beginFrameMethod · 0.80
setTilesMethod · 0.80
writeTilesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected