Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
endif()
3 changes: 1 addition & 2 deletions include/pthread_backend.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#pragma once

#include <stdexcept>
#include <sys/io.h>
#include <sys/uio.h>
#include <unistd.h>
#include <cstdlib>
Expand Down Expand Up @@ -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<torch::Tensor> pinned);
void register_tasks(unsigned int num_tasks);
};
};