diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2019-12-07 17:31:44 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2019-12-07 17:31:44 +0000 |
commit | e1a4a7c0e17237094522b9a0ef9e5a77d7c158aa (patch) | |
tree | 56541d432cd5abb5da9316ac4acef495ab059fd6 /lang/compute-runtime/files/patch-mmap | |
parent | - Update to 1.4.1 (diff) |
devel/compute-runtime: add new port
Tested by: clpeak, waifu2x-converter-cpp via drm-v4.9 on Skylake
The Intel(R) Graphics Compute Runtime for OpenCL(TM) is an open source
project to converge Intel's development efforts on OpenCL(TM) compute
stacks supporting the GEN graphics hardware architecture.
https://01.org/compute-runtime
Notes
Notes:
svn path=/head/; revision=519222
Diffstat (limited to 'lang/compute-runtime/files/patch-mmap')
-rw-r--r-- | lang/compute-runtime/files/patch-mmap | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lang/compute-runtime/files/patch-mmap b/lang/compute-runtime/files/patch-mmap new file mode 100644 index 000000000000..7d40c301a720 --- /dev/null +++ b/lang/compute-runtime/files/patch-mmap @@ -0,0 +1,31 @@ +Some mmap(2) flags are Linux-specific but otherwise not required + +core/os_interface/linux/os_memory_linux.cpp:17:83: error: + use of undeclared identifier 'MAP_NORESERVE' + return mmapWrapper(0, sizeToReserve, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE | MAP_... + ^ +core/os_interface/linux/os_memory_linux.cpp:17:99: error: + use of undeclared identifier 'MAP_HUGETLB' + ...mmapWrapper(0, sizeToReserve, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE | MAP_HUGETLB, -1... + ^ + +--- core/os_interface/linux/os_memory_linux.cpp.orig 2019-11-22 15:41:47 UTC ++++ core/os_interface/linux/os_memory_linux.cpp +@@ -7,6 +7,17 @@ + + #include "core/os_interface/linux/os_memory_linux.h" + ++#ifdef MAP_ALIGNED_SUPER ++#define MAP_HUGETLB MAP_ALIGNED_SUPER // FreeBSD ++#endif ++ ++#ifndef MAP_NORESERVE ++#define MAP_NORESERVE 0 ++#endif ++#ifndef MAP_HUGETLB ++#define MAP_HUGETLB 0 ++#endif ++ + namespace NEO { + + std::unique_ptr<OSMemory> OSMemory::create() { |