From 4701b9b672986ea0db1598873f19945398a2fe23 Mon Sep 17 00:00:00 2001 From: 3manifold <22544721+3manifold@users.noreply.github.com> Date: Tue, 7 Oct 2025 10:50:11 +0200 Subject: [PATCH 1/2] Update CMakeLists.txt Make sure the project is built on Release mode --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e1b3cbe..5e0b1d4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,9 +8,14 @@ project( set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD_REQUIRED TRUE) +IF (NOT CMAKE_BUILD_TYPE) + MESSAGE(STATUS "CMAKE_BUILD_TYPE IS EMPTY. ASSIGN: RELEASE") + SET(CMAKE_BUILD_TYPE RELEASE) +ENDIF () + add_subdirectory(3rd) add_subdirectory(csrc) if(EXISTS ${CMAKE_SOURCE_DIR}/tests) add_subdirectory(tests) -endif() \ No newline at end of file +endif() From ca9d44d3bf90f462c0c52e8ddca8ed664d3c9edf Mon Sep 17 00:00:00 2001 From: 3manifold <22544721+3manifold@users.noreply.github.com> Date: Tue, 7 Oct 2025 10:53:12 +0200 Subject: [PATCH 2/2] Remove redundant in pthread_backend.h --- include/pthread_backend.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/pthread_backend.h b/include/pthread_backend.h index 27a5daa..e27f37f 100644 --- a/include/pthread_backend.h +++ b/include/pthread_backend.h @@ -1,7 +1,6 @@ #pragma once #include -#include #include #include #include @@ -59,4 +58,4 @@ class PthreadAsyncIO : public AsyncIO void write_tensor(int fd, torch::Tensor t, unsigned long long offset, callback_t callback, std::optional pinned); void register_tasks(unsigned int num_tasks); -}; \ No newline at end of file +};