From 0ea071fa5ab3efcf76611fd6b030059cd148bbb7 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Tue, 29 Oct 2024 01:57:28 -0700 Subject: [PATCH] [open3d] add OpenMP feature --- ports/open3d/portfile.cmake | 3 ++- ports/open3d/vcpkg.json | 6 +++++- versions/o-/open3d.json | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ports/open3d/portfile.cmake b/ports/open3d/portfile.cmake index 84d991cccf24a2..d94822f3fd44ff 100644 --- a/ports/open3d/portfile.cmake +++ b/ports/open3d/portfile.cmake @@ -25,6 +25,7 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS "blas" USE_BLAS "intel-oneapi" OPEN3D_USE_ONEAPI_PACKAGES "sycl" BUILD_SYCL_MODULE + "openmp" WITH_OPENMP "python" BUILD_PYTHON_MODULE ) @@ -50,7 +51,7 @@ vcpkg_cmake_configure( -DOPEN3D_USE_ONEAPI_PACKAGES=${OPEN3D_USE_ONEAPI_PACKAGES} -DUSE_BLAS=${USE_BLAS} -DUSE_SYSTEM_BLAS=ON - -DWITH_OPENMP=OFF + -DWITH_OPENMP=${WITH_OPENMP} -DUSE_SYSTEM_ASSIMP=ON -DUSE_SYSTEM_CURL=ON -DUSE_SYSTEM_CUTLASS=ON diff --git a/ports/open3d/vcpkg.json b/ports/open3d/vcpkg.json index 8e037389af816e..3e4bc6838ce6c0 100644 --- a/ports/open3d/vcpkg.json +++ b/ports/open3d/vcpkg.json @@ -37,7 +37,8 @@ ], "default-features": [ "blas", - "gui" + "gui", + "openmp" ], "features": { "blas": { @@ -65,6 +66,9 @@ "intel-mkl" ] }, + "openmp": { + "description": "Use OpenMP multi-threading" + }, "python": { "description": "Build the python module", "dependencies": [ diff --git a/versions/o-/open3d.json b/versions/o-/open3d.json index 4c091950ff7a85..735cece6db5a2e 100644 --- a/versions/o-/open3d.json +++ b/versions/o-/open3d.json @@ -1,7 +1,7 @@ { "versions": [ { - "git-tree": "443b57a6ca1fd2a63b3eeac43ba2e3ed6991c5f9", + "git-tree": "fbdd86787a1d4ce0c989e954c76022acaede5f90", "version-semver": "0.18.0", "port-version": 0 }