We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a1af67 commit cc9a505Copy full SHA for cc9a505
src/main/native/gpu/src/rocm.cpp
@@ -3,7 +3,6 @@
3
#include <unistd.h>
4
#include <sys/stat.h>
5
#include <sys/types.h>
6
-#include <sys/sysmacros.h>
7
#include <inttypes.h>
8
#include <glob.h> // glob(), globfree()
9
#include <string.h> // memset()
@@ -14,6 +13,10 @@
14
13
#include <sstream>
15
#include <dlfcn.h>
16
+#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__APPLE__)
17
+#include <sys/sysmacros.h>
18
+#endif
19
+
20
namespace convert
21
{
22
template < typename T > std::string to_string( const T& n )
@@ -136,4 +139,4 @@ JNIEXPORT jstring JNICALL Java_io_hops_management_amd_AMDManagementLibrary_query
136
139
numSchedulableGPUs++;
137
140
}
138
141
return env->NewStringUTF(available_devices.c_str());
- }
142
+ }
0 commit comments