Skip to content

Commit

Permalink
Explicit shutdownTaskingSystem() call
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslawpawlowski committed Sep 27, 2024
1 parent 7eddbc4 commit 5ce9ede
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmake/ospray_options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set(OSPRAY_CMAKECONFIG_DIR
"${CMAKE_INSTALL_LIBDIR}/cmake/ospray-${OSPRAY_VERSION}")

set(ISPC_VERSION_REQUIRED 1.23.0)
set(RKCOMMON_VERSION_REQUIRED 1.14.1)
set(RKCOMMON_VERSION_REQUIRED 1.14.2)
set(EMBREE_VERSION_REQUIRED 4.3.3)
set(OPENVKL_VERSION_REQUIRED 2.0.1)
set(OIDN_VERSION_REQUIRED 2.3.0)
Expand Down
6 changes: 6 additions & 0 deletions ospray/api/Device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ Device *Device::createInstance(const char *type)
memory::IntrusivePtr<Device> Device::current;
uint32_t Device::logLevel = OSP_LOG_NONE;

Device::~Device()
{
// Terminate all worker threads
tasking::shutdownTaskingSystem();
}

Device *Device::createDevice(const char *type)
{
// NOTE(jda) - If a user is manually creating the device (i.e. not using
Expand Down
2 changes: 1 addition & 1 deletion ospray/api/Device.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct OSPRAY_CORE_INTERFACE Device : public memory::RefCountedObject,
static memory::IntrusivePtr<Device> current;

Device() = default;
virtual ~Device() override = default;
virtual ~Device() override;

static Device *createDevice(const char *type);

Expand Down
6 changes: 3 additions & 3 deletions scripts/superbuild/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ else()
mark_as_advanced(FORCE ISPC_VERSION)
endif()

set(RKCOMMON_VERSION "1.14.1" CACHE STRING "Which version of rkcommon to build?")
if (RKCOMMON_VERSION STREQUAL "1.14.1")
set(RKCOMMON_HASH "39f69a9434cf8ad3d3d7c8413f47395f6d693b415559a178c391e4833721ebf3")
set(RKCOMMON_VERSION "1.14.2" CACHE STRING "Which version of rkcommon to build?")
if (RKCOMMON_VERSION STREQUAL "1.14.2")
set(RKCOMMON_HASH "79334ef3dadddb03ec0483fbf49bf690fb8902d5c2732d977b2c116651484cc6")
endif()

option(DOWNLOAD_TBB "Download TBB or use the one found in the system environment?" ON)
Expand Down

0 comments on commit 5ce9ede

Please sign in to comment.