Skip to content
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

vtk-m[cuda] Install Fails #19674

Closed
adamgranthendry opened this issue Aug 20, 2021 · 5 comments
Closed

vtk-m[cuda] Install Fails #19674

adamgranthendry opened this issue Aug 20, 2021 · 5 comments

Comments

@adamgranthendry
Copy link

adamgranthendry commented Aug 20, 2021

Problem

Running vcpkg install vtk-m[cuda] (triplet set with VCPKG_DEFAULT_TRIPLET=x64-windows) fails to build with Visual Studio 2017.

Environment

  • OS: Windows 10 Enterprise x64, Build 1909
  • Compiler: Visual Studio 2017 Community, v15.9.38
  • Vcpkg version: 2021-08-12-85ab112d5ee102bc6eac8cdbbfdd173a71374e04
  • CMake version: 3.21.0-rc2

Steps to Reproduce

vcpkg Setup

> cd C:\
> git clone https://github.com/microsoft/vcpkg.git
> cd vcpkg
> bootstrap-vcpkg.bat
> vcpkg integrate install 
> git pull
> vcpkg update
> bootstrap-vcpkg.bat
> vcpkg integrate install 

Install vtk-m[cuda]

NOTE:
1. Set VCPKG_DEFAULT_TRIPLET=x64-windows in environment variables

> vcpkg install vtk-m[cuda]

Output

Computing installation plan...
The following packages will be built and installed:
    vtk-m[core,cuda]:x64-windows -> 1.5.0#1
Detecting compiler hash for triplet x64-windows...
Could not locate cached archive: C:\Users\hendra11\AppData\Local\vcpkg\archives\8d\8d5ed2a2e4420b67a9018ccf1492f564f9302f0e2b6b11096539c3f124fafd3a.zip
Starting package 1/1: vtk-m:x64-windows
Building package vtk-m[core,cuda]:x64-windows...
-- Feature CUDA forces static build!
-- Downloading https://gitlab.kitware.com/vtk/vtk-m/-/archive/f2aa6ad5be1a97e3fb41ef4680ee2c76c3434ac0/vtk-m-f2aa6ad5be1a97e3fb41ef4680ee2c76c3434ac0.tar.gz -> vtk-vtk-m-f2aa6ad5be1a97e3fb41ef4680ee2c76c3434ac0-1.tar.gz...
-- Cleaning sources at C:/vcpkg/buildtrees/vtk-m/src/76c3434ac0-e768dfe740.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/vcpkg/downloads/vtk-vtk-m-f2aa6ad5be1a97e3fb41ef4680ee2c76c3434ac0-1.tar.gz
-- Using source at C:/vcpkg/buildtrees/vtk-m/src/76c3434ac0-e768dfe740.clean
-- Configuring x64-windows
CMake Warning at scripts/cmake/vcpkg_configure_cmake.cmake:421 (message):
  The following variables are not used in CMakeLists.txt:

      BUILD_TESTING
      VTKm_USE_DEFAULT_TYPES_FOR_VTK

  Please recheck them and remove the unnecessary options from the
  `vcpkg_configure_cmake` call.

  If these options should still be passed for whatever reason, please use the
  `MAYBE_UNUSED_VARIABLES` argument.
Call Stack (most recent call first):
  ports/vtk-m/portfile.cmake:49 (vcpkg_configure_cmake)
  scripts/ports.cmake:140 (include)


-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:155 (message):
    Command failed: C:/vcpkg/downloads/tools/cmake-3.21.1-windows/cmake-3.21.1-windows-i386/bin/cmake.exe --build . --config Debug --target install -- -v -j49
    Working Directory: C:/vcpkg/buildtrees/vtk-m/x64-windows-dbg
    See logs for more information:
      C:\vcpkg\buildtrees\vtk-m\install-x64-windows-dbg-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_cmake.cmake:104 (vcpkg_execute_build_process)
  scripts/cmake/vcpkg_install_cmake.cmake:44 (vcpkg_build_cmake)
  ports/vtk-m/portfile.cmake:52 (vcpkg_install_cmake)
  scripts/ports.cmake:140 (include)


Error: Building package vtk-m:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: vtk-m:x64-windows
  Vcpkg version: 2021-08-12-85ab112d5ee102bc6eac8cdbbfdd173a71374e04

Additionally, attach any relevant sections from the log files above.

Expected Behavior

vtk-m[cuda] installs without error

Failure Logs

install-x64-windows-dbg-out.log

@adamgranthendry
Copy link
Author

Investigation of the output log reveals the same error repeating itself:

C:\vcpkg\buildtrees\vtk-m\src\76c3434ac0-e768dfe740.clean\vtkm/cont/ArrayHandleView.h(114): error #1866: attribute does not apply to any entity

@Neumann-A
Copy link
Contributor

Investigation of the output log reveals the same error repeating itself:

that is not the error. the stdc++14 flag warning is the error. update cuda to 11.4 and it will work

@adamgranthendry
Copy link
Author

adamgranthendry commented Aug 21, 2021

@Neumann-A Thank you. I will try this and report back.

Side Note: I don't see a "required/minimum dependencies" section in the VTKm 1.6 manual (I was under the impression CUDA 10.2 would work). I will create a feature request on the VTKm repo for this and link it here.

VTKmUsersGuide-1-6.pdf

@adamgranthendry
Copy link
Author

adamgranthendry commented Aug 21, 2021

Please see

Feature Request: Add Minimum/Required Dependencies List/Section to User Guide #633

for status of feature request to add minimum required dependencies to VTKm user guide.

@adamgranthendry
Copy link
Author

I can confirm that installing CUDA 11.4 solves this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants