Skip to content

Commit

Permalink
Fixed AVX512KNL and AVX512SKX support for embree3. (microsoft#17701)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismile authored May 13, 2021
1 parent d514264 commit 1c06693
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ports/embree3/CONTROL
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Source: embree3
Version: 3.11.0
Port-Version: 1
Port-Version: 2
Homepage: https://github.com/embree/embree
Description: High Performance Ray Tracing Kernels.
Build-Depends: tbb
8 changes: 7 additions & 1 deletion ports/embree3/fix-static-usage.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ diff --git a/common/cmake/embree-config.cmake b/common/cmake/embree-config.cmake
index 14ce929..7e2e8f5 100644
--- a/common/cmake/embree-config.cmake
+++ b/common/cmake/embree-config.cmake
@@ -50,6 +50,16 @@ IF (EMBREE_STATIC_LIB)
@@ -50,6 +50,22 @@ IF (EMBREE_STATIC_LIB)
INCLUDE("${EMBREE_ROOT_DIR}/@EMBREE_CMAKEEXPORT_DIR@/simd-targets.cmake")
INCLUDE("${EMBREE_ROOT_DIR}/@EMBREE_CMAKEEXPORT_DIR@/lexers-targets.cmake")
INCLUDE("${EMBREE_ROOT_DIR}/@EMBREE_CMAKEEXPORT_DIR@/tasking-targets.cmake")
Expand All @@ -15,6 +15,12 @@ index 14ce929..7e2e8f5 100644
+ ENDIF()
+ IF(EMBREE_ISA_AVX2)
+ INCLUDE("${EMBREE_ROOT_DIR}/@EMBREE_CMAKEEXPORT_DIR@/embree_avx2-targets.cmake")
+ ENDIF()
+ IF(EMBREE_ISA_AVX512KNL)
+ INCLUDE("${EMBREE_ROOT_DIR}/@EMBREE_CMAKEEXPORT_DIR@/embree_avx512knl-targets.cmake")
+ ENDIF()
+ IF(EMBREE_ISA_AVX512SKX)
+ INCLUDE("${EMBREE_ROOT_DIR}/@EMBREE_CMAKEEXPORT_DIR@/embree_avx512skx-targets.cmake")
+ ENDIF()
ENDIF()

Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1834,7 +1834,7 @@
},
"embree3": {
"baseline": "3.11.0",
"port-version": 1
"port-version": 2
},
"enet": {
"baseline": "1.3.16",
Expand Down
5 changes: 5 additions & 0 deletions versions/e-/embree3.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "955eb7f17ebf475e96ee8fe283b56cbc3944da44",
"version-string": "3.11.0",
"port-version": 2
},
{
"git-tree": "c8355374d128022898e8694462f47103bd730684",
"version-string": "3.11.0",
Expand Down

0 comments on commit 1c06693

Please sign in to comment.