Fix GPU build failures.

This commit is contained in:
Antonio Sanchez
2025-03-09 17:04:41 -07:00
parent 6a4a0b66bd
commit 952eda443b
7 changed files with 37 additions and 24 deletions

View File

@@ -52,11 +52,14 @@
#endif
#ifdef _WIN32
#define NOMINMAX
#include <windows.h>
#elif defined(__APPLE__)
#include <mach/mach_time.h>
#include <unistd.h>
#else
#include <time.h>
#include <unistd.h>
#endif
#ifdef EIGEN_USE_THREADS
@@ -68,7 +71,8 @@
#include <cuda_runtime.h>
#if __cplusplus >= 201103L
#include <atomic>
#include <unistd.h>
#include <chrono>
#include <thread>
#endif
#endif