-
Notifications
You must be signed in to change notification settings - Fork 7.4k
[VTK/vtk-m] Update VTK to 9.0 and add vtk-m #11148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
850e556
[vtk-m] new port vtk-m
Neumann-A 06ecd9a
[VTK] Update to 9.0
Neumann-A 712d265
include local buildtree changes
Neumann-A d14828b
[pcl] disable VTK due to API changes in VTK 9.0
Neumann-A b8412bc
[vtk-m] add supports field to be only x64
Neumann-A 5037be5
[vtk-dicom] add python executable.
Neumann-A cc62abd
fix vtkm dependency
Neumann-A a9879e9
[vtk-dicom] fix missing std:: namespace
Neumann-A e9c7079
[vtk-m] add uwp to unsupported triplets
Neumann-A be19c64
[vtk] add pegtl include patch, reenable IOMotionFX
Neumann-A 7f54cda
remove hdf5 changes for testing
Neumann-A 9dd615d
use different pgetl patch which redirects to the installed config of …
Neumann-A 487b618
[pegtl-2] version file needs renaming too
Neumann-A a173464
[vtk] change dependency to pgetl-2 and fix the patch
Neumann-A e602617
[vtk] put in hdf5 fix again and correct manually installed include files
Neumann-A 9cd771b
remove deprecated function to retrigger CI
Neumann-A 3972e24
[lz4] correctly lowercase the lz4 config
Neumann-A bcd66d0
[vtk] remove unnecessary code
Neumann-A a5cf13f
[pegtl-2] add homepage
Neumann-A cc7648c
[pegtl] modernize portfiles
Neumann-A 6bfc20c
[vtk-dicom] add homepage
Neumann-A ad6688c
[vtk-dicom] modernize portfile
Neumann-A 746d82a
[vtk-m] remove empty build depends
Neumann-A ffe138f
[vtk] try fixing the permission issue
Neumann-A b0dedc8
bump control
Neumann-A 9ff722b
Update FindHDF5.cmake
Neumann-A f9de7c4
Update pegtl.patch
Neumann-A bc34aa9
Update ports/vtk/pegtl.patch
Neumann-A 9786d97
[vtk] refactor portfile, added a few deps on [core] and added feature…
Neumann-A 462a8c0
[vtk] pegtl.patch: Add additional found message
Neumann-A 01bb014
[vtk-m] add more documentation comments
Neumann-A f3d094e
[vtk] fix string replacement
Neumann-A File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| Source: lz4 | ||
| Version: 1.9.2-1 | ||
| Version: 1.9.2-2 | ||
| Homepage: https://github.com/lz4/lz4 | ||
| Description: Lossless compression algorithm, providing compression speed at 400 MB/s per core. | ||
| Build-Depends: xxhash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| Source: pegtl-2 | ||
| Version: 2.8.1 | ||
| Version: 2.8.1-1 | ||
| Description: The Parsing Expression Grammar Template Library (PEGTL) is a zero-dependency C++ header-only parser combinator library for creating parsers according to a Parsing Expression Grammar (PEG). This version maintains compatibility with C++11. | ||
| Homepage: https://github.com/taocpp/PEGTL | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| include(vcpkg_common_functions) | ||
| vcpkg_from_github( | ||
| OUT_SOURCE_PATH SOURCE_PATH | ||
| REPO taocpp/pegtl | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| diff --git a/Source/vtkScancoCTReader.cxx b/Source/vtkScancoCTReader.cxx | ||
| index a71f2e46e..afe202ffc 100644 | ||
| --- a/Source/vtkScancoCTReader.cxx | ||
| +++ b/Source/vtkScancoCTReader.cxx | ||
| @@ -176,7 +176,7 @@ int vtkScancoCTReader::CheckVersion(const char header[16]) | ||
| //---------------------------------------------------------------------------- | ||
| int vtkScancoCTReader::CanReadFile(const char *filename) | ||
| { | ||
| - ifstream infile(filename, ios::in | ios::binary); | ||
| + std::ifstream infile(filename, ios::in | ios::binary); | ||
|
|
||
| bool canRead = false; | ||
| if (infile.good()) | ||
| @@ -409,7 +409,7 @@ void vtkScancoCTReader::StripString(char *dest, const char *cp, size_t l) | ||
| } | ||
|
|
||
| //---------------------------------------------------------------------------- | ||
| -int vtkScancoCTReader::ReadISQHeader(ifstream *file, unsigned long bytesRead) | ||
| +int vtkScancoCTReader::ReadISQHeader(std::ifstream *file, unsigned long bytesRead) | ||
| { | ||
| if (bytesRead < 512) | ||
| { | ||
| @@ -620,7 +620,7 @@ int vtkScancoCTReader::ReadISQHeader(ifstream *file, unsigned long bytesRead) | ||
| } | ||
|
|
||
| //---------------------------------------------------------------------------- | ||
| -int vtkScancoCTReader::ReadAIMHeader(ifstream *file, unsigned long bytesRead) | ||
| +int vtkScancoCTReader::ReadAIMHeader(std::ifstream *file, unsigned long bytesRead) | ||
| { | ||
| if (bytesRead < 160) | ||
| { | ||
| @@ -987,7 +987,7 @@ int vtkScancoCTReader::RequestInformation( | ||
| const char *ufilename = filename; | ||
| #endif | ||
|
|
||
| - ifstream infile(ufilename, ios::in | ios::binary); | ||
| + std::ifstream infile(ufilename, ios::in | ios::binary); | ||
| if (!infile.good()) | ||
| { | ||
| vtkErrorMacro("Cannot open file " << filename); | ||
| @@ -1115,7 +1115,7 @@ int vtkScancoCTReader::RequestData( | ||
| static_cast<unsigned char *>(data->GetScalarPointer()); | ||
|
|
||
| // open the file | ||
| - ifstream infile(filename, ios::in | ios::binary); | ||
| + std::ifstream infile(filename, ios::in | ios::binary); | ||
| if (!infile.good()) | ||
| { | ||
| vtkErrorMacro("Cannot open file " << filename); | ||
| diff --git a/Source/vtkScancoCTReader.h b/Source/vtkScancoCTReader.h | ||
| index ca31d7572..240d532f2 100644 | ||
| --- a/Source/vtkScancoCTReader.h | ||
| +++ b/Source/vtkScancoCTReader.h | ||
| @@ -34,6 +34,7 @@ | ||
| #ifndef vtkScancoCTReader_h | ||
| #define vtkScancoCTReader_h | ||
|
|
||
| +#include <iosfwd> | ||
| #include "vtkImageReader2.h" | ||
| #include "vtkDICOMModule.h" // For export macro | ||
| #include "vtkDICOMConfig.h" // For configuration details | ||
| @@ -185,10 +186,10 @@ protected: | ||
| void InitializeHeader(); | ||
|
|
||
| //! Read an ISQ header. | ||
| - int ReadISQHeader(ifstream *file, unsigned long bytesRead); | ||
| + int ReadISQHeader(std::ifstream *file, unsigned long bytesRead); | ||
|
|
||
| //! Read AIM header. | ||
| - int ReadAIMHeader(ifstream *file, unsigned long bytesRead); | ||
| + int ReadAIMHeader(std::ifstream *file, unsigned long bytesRead); | ||
|
|
||
| //! Check the file header to see what type of file it is. | ||
| /*! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| Source: vtk-m | ||
| Version: 1.5.0 | ||
| Homepage: https://gitlab.kitware.com/vtk/vtk-m/ | ||
| Description: VTK-m is a toolkit of scientific visualization algorithms for emerging processor architectures. | ||
| Supports: x64 & !uwp | ||
|
|
||
| Feature: cuda | ||
| Description: Use the NVIDIA CUDA device adapter. | ||
| Build-Depends: cuda | ||
|
|
||
| Feature: omp | ||
| Description: Use the OpenMP device adapter. | ||
|
|
||
| Feature: tbb | ||
| Description: Use the Intel TBB device adapter. | ||
| Build-Depends: tbb | ||
|
|
||
| Feature: mpi | ||
| Description: Use the MPI controller. | ||
| Build-Depends: mpi | ||
|
|
||
| Feature: double | ||
| Description: Use double precision in floating point calculations |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| # VENDORED DEPENDENCIES! | ||
| # TODO: Should be replaced in the future with VCPKG internal versions | ||
| # add_subdirectory(thirdparty/diy) | ||
| # add_subdirectory(thirdparty/lodepng) | ||
| # if(VTKm_ENABLE_LOGGING) | ||
| # add_subdirectory(thirdparty/loguru) | ||
| # endif() | ||
| # add_subdirectory(thirdparty/optionparser) | ||
| # add_subdirectory(thirdparty/taotuple) | ||
| # add_subdirectory(thirdparty/lcl) | ||
strega-nil marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| vcpkg_check_features (OUT_FEATURE_OPTIONS OPTIONS | ||
| FEATURES | ||
| cuda VTKm_ENABLE_CUDA | ||
| omp VTKm_ENABLE_OPENMP | ||
| tbb VTKm_ENABLE_TBB | ||
| mpi VTKm_ENABLE_MPI | ||
| double VTKm_USE_DOUBLE_PRECISION | ||
| ) | ||
|
|
||
| if("cuda" IN_LIST FEATURES AND NOT ENV{CUDACXX}) | ||
| set(ENV{CUDACXX} "$ENV{CUDA_PATH}/bin/nvcc") | ||
| if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") | ||
| message(STATUS "Feature CUDA forces static build!") | ||
| endif() | ||
| set(VCPKG_LIBRARY_LINKAGE "static") # CUDA forces static build. | ||
| endif() | ||
|
|
||
| list(APPEND OPTIONS -DVTKm_ENABLE_RENDERING=ON) | ||
| list(APPEND OPTIONS -DVTKm_ENABLE_DEVELOPER_FLAGS=OFF) | ||
| list(APPEND OPTIONS -DVTKm_ENABLE_CPACK=OFF) | ||
| list(APPEND OPTIONS -DVTKm_USE_DEFAULT_TYPES_FOR_VTK=ON) | ||
| # For port customizations on unix systems. | ||
| # Please feel free to make these port features if it makes any sense | ||
| #list(APPEND OPTIONS -DVTKm_ENABLE_GL_CONTEXT=ON) # or | ||
| #list(APPEND OPTIONS -DVTKm_ENABLE_EGL_CONTEXT=ON) # or | ||
| #list(APPEND OPTIONS -DVTKm_ENABLE_OSMESA_CONTEXT=ON) | ||
| list(APPEND OPTIONS -DBUILD_TESTING=OFF) | ||
|
|
||
| vcpkg_from_gitlab(GITLAB_URL "https://gitlab.kitware.com" | ||
| OUT_SOURCE_PATH SOURCE_PATH | ||
| REPO vtk/vtk-m | ||
| REF f2aa6ad5be1a97e3fb41ef4680ee2c76c3434ac0 # v1.5.0 Version is strongly locked to VTK 9.0. Upgrading will most likly brake the VTK build | ||
| SHA512 2f2a273f74d9a583df9e25a4792440d8d89652fa14b3153f2ea5afbd329b50970e7b9bd68e0ccd036baf5c1f3ad7a8302d95c01dbb30d9a46c045987eebf5370) | ||
| # For people only wanting vtk-m and not VTK | ||
| #REF 74ffad9bd0679d061bc87e544a728f1c3c926269 # v1.5.1 | ||
Neumann-A marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| #SHA512 c9e1c18432b6c11ae086445255acf9477fe4c888122a2b2a9713dc63a40d2e4c2375742157526b5f0869f14c62a4ad66d81ee58d6cc75a1d53a1d615525a03c9) | ||
| vcpkg_configure_cmake(SOURCE_PATH ${SOURCE_PATH} | ||
| PREFER_NINJA | ||
| OPTIONS ${OPTIONS}) | ||
| vcpkg_install_cmake() | ||
| vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/vtkm-1.5 TARGET_PATH share/vtkm) | ||
|
|
||
| file(READ ${CURRENT_PACKAGES_DIR}/share/vtkm/VTKmConfig.cmake _contents) | ||
| string(REPLACE [[set_and_check(VTKm_CONFIG_DIR "${PACKAGE_PREFIX_DIR}/lib/cmake/vtkm-1.5")]] [[set_and_check(VTKm_CONFIG_DIR "${PACKAGE_PREFIX_DIR}/share/vtkm")]] _contents ${_contents}) | ||
| file(WRITE ${CURRENT_PACKAGES_DIR}/share/vtkm/VTKmConfig.cmake ${_contents}) | ||
|
|
||
| file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) | ||
| file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) | ||
|
|
||
| file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1,41 @@ | ||
| Source: vtk | ||
| Version: 8.2.0-13 | ||
| Version: 9.0 | ||
| Description: Software system for 3D computer graphics, image processing, and visualization | ||
| Homepage: https://github.com/Kitware/VTK | ||
| Build-Depends: zlib, libpng, tiff, libxml2, jsoncpp, glew, freetype, expat, hdf5, libjpeg-turbo, proj4, lz4, libtheora, eigen3, double-conversion, pugixml, libharu, sqlite3, netcdf-c | ||
| Build-Depends: zlib, libpng, tiff, libxml2, jsoncpp, glew, freetype, expat, hdf5[core], libjpeg-turbo, proj4, lz4, liblzma, libtheora, eigen3, double-conversion, pugixml, libharu[notiffsymbols], sqlite3, netcdf-c, utfcpp, libogg, pegtl-2 | ||
|
|
||
| Feature: vtkm | ||
| Description: Build with vtk-m accelerator and module. | ||
| Build-Depends: vtk-m[core] | ||
|
|
||
| Feature: openvr | ||
| Description: OpenVR functionality for VTK | ||
| Build-Depends: sdl2, openvr | ||
|
|
||
| Feature: qt | ||
| Description: Qt functionality for VTK | ||
| Build-Depends: qt5 | ||
| Build-Depends: qt5-xmlpatterns, qt5-tools, qt5-imageformats, qt5-x11extras (linux) | ||
|
|
||
| Feature: mpi | ||
| Description: MPI functionality for VTK | ||
| Build-Depends: mpi, hdf5[parallel] | ||
| Build-Depends: mpi, hdf5[core, parallel], vtk-m[core,mpi] | ||
|
|
||
| Feature: python | ||
| Description: Python functionality for VTK | ||
| Build-Depends: python3 | ||
|
|
||
| Feature: atlmfc | ||
| Description: Mfc functionality for vtk on Windows | ||
| Build-Depends: atlmfc (windows) | ||
| Build-Depends: atlmfc (windows) | ||
|
|
||
| Feature: paraview | ||
| Description: Build vtk modules required by paraview | ||
| Build-Depends: vtk[core, qt], vtk[core, atlmfc] (windows) | ||
|
|
||
| Feature: cuda | ||
| Description: Support CUDA compilation | ||
| Build-Depends: cuda | ||
|
|
||
| Feature: all | ||
| Description: Build vtk modules required by paraview | ||
| Build-Depends: libmysql, ffmpeg, gdal, vtk[core, qt, python, mpi], vtk[core, atlmfc] (windows) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.