Skip to content

Commit cc9a505

Browse files
smkniaziGautier Berthou
authored and
Gautier Berthou
committed
[HOPS-1328] Fxied compilation on MACOS
1 parent 2a1af67 commit cc9a505

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main/native/gpu/src/rocm.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#include <unistd.h>
44
#include <sys/stat.h>
55
#include <sys/types.h>
6-
#include <sys/sysmacros.h>
76
#include <inttypes.h>
87
#include <glob.h> // glob(), globfree()
98
#include <string.h> // memset()
@@ -14,6 +13,10 @@
1413
#include <sstream>
1514
#include <dlfcn.h>
1615

16+
#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__APPLE__)
17+
#include <sys/sysmacros.h>
18+
#endif
19+
1720
namespace convert
1821
{
1922
template < typename T > std::string to_string( const T& n )
@@ -136,4 +139,4 @@ JNIEXPORT jstring JNICALL Java_io_hops_management_amd_AMDManagementLibrary_query
136139
numSchedulableGPUs++;
137140
}
138141
return env->NewStringUTF(available_devices.c_str());
139-
}
142+
}

0 commit comments

Comments
 (0)