ceccocats / tkDNN

Deep neural network library and toolkit to do high performace inference on NVIDIA jetson platforms
GNU General Public License v2.0
718 stars 208 forks source link

YAML issue trying to compile on windows. #269

Closed Fistcar closed 2 years ago

Fistcar commented 2 years ago

I've been trying to compile tkDNN on windows but I cannot get past a YAML issue. Is there a specific YAML-CPP version that must be used?

" ..
CMake Warning (dev) at CMakeLists.txt:21:
  Syntax Warning in cmake code at column 30

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found CUDNN: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2/lib/x64
-- Found CUDNN include: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2/lib/x64
-- Found NVINFER: C:/projects/TensorRT-7.2.3.4/lib/nvinfer.lib
-- Found NVINFER include: C:/projects/TensorRT-7.2.3.4/include
Eigen DIR: C:/opt/x64-windows/include/eigen3
CMake Error at CMakeLists.txt:61 (find_package):
  Could not find a configuration file for package "yaml-cpp" that is
  compatible with requested version "".

  The following configuration files were considered but not accepted:

    C:/Program Files (x86)/YAML_CPP/share/cmake/yaml-cpp/yaml-cpp-config.cmake, version: 0.6.3 (64bit)
    C:/opt/x64-windows/share/yaml-cpp/yaml-cpp-config.cmake, version: 0.7.0 (64bit)

-- Configuring incomplete, errors occurred!
See also "C:/projects/temp/tkDNN/build/CMakeFiles/CMakeOutput.log".
perseusdg commented 2 years ago

It works with both yaml-cpp 0.7 and 0.6

Fistcar commented 2 years ago

Ah, cool. Should I have done something besides: vcpkg.exe install yaml-cpp:x64-windows --x-install-root=C:\opt --x-buildtrees-root=C:\temp_vcpkg_build to install it so I could compile?

perseusdg commented 2 years ago

No that should be sufficient ..but how exactly are you using vcpkg built packages ?...is it through the vcpkg tool chain file or are you manually defining prefix path ?,I almost always only use the former and it works for me

Fistcar commented 2 years ago

I was following the build instructions here https://github.com/ceccocats/tkDNN/blob/master/docs/windows.md I ran the vcpkg tool the way the instructions said. Is there a different way to use vcpkg? I've not used it before trying to use tkDNN on windows.

Fistcar commented 2 years ago

vcpkg installed 'C:/opt/x64-windows/share/yaml-cpp/yaml-cpp-config.cmake, version: 0.7.0 (64bit)' but cmake told me the error (The following configuration files were considered but not accepted:) about yaml version: 0.7.0 in my original post. It clearly sees the yaml, and I not sure why it is not accepted.

Fistcar commented 2 years ago

I found info about vcpkg toolchain use here, https://github.com/microsoft/vcpkg/blob/master/docs/users/integration.md#cmake-integration . I used the vckpg toolchain file, it changed the error message source as coming from the vcpkg (C:/projects/vcpkg/scripts/buildsystems/vcpkg.cmake) now. I tried to use the yaml-cpp-config.cmake as a chainload cmake file, but that did not work either.

c:\projects\temp\tkDNN\build>cmake -DCMAKE_BUILD_TYPE=Release -DCUDNN_LIBRARY="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\lib\x64" -DCUDNN_INCLUDE_DIR="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\include" -DCMAKE_TOOLCHAIN_FILE=C:\projects\vcpkg\scripts\buildsystems\vcpkg.cmake -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE="C:\opt\x64-windows\share\yaml-cpp\yaml-cpp-config.cmake" -G"Ninja" ..
CMake Warning (dev) at CMakeLists.txt:21:
  Syntax Warning in cmake code at column 30

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at C:/opt/x64-windows/share/yaml-cpp/yaml-cpp-targets.cmake:53 (add_library):
  ADD_LIBRARY called with SHARED option but the target platform does not
  support dynamic linking.  Building a STATIC library instead.  This may lead
  to problems.
Call Stack (most recent call first):
  C:/opt/x64-windows/share/yaml-cpp/yaml-cpp-config.cmake:11 (include)
  C:/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:215 (include)
  C:/Program Files/CMake/share/cmake-3.20/Modules/CMakeDetermineSystem.cmake:123 (include)
  CMakeLists.txt:3 (project)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is MSVC 19.29.30136.0
-- The CXX compiler identification is MSVC 19.29.30136.0
-- Detecting C compiler ABI info
CMake Warning (dev) at C:/opt/x64-windows/share/yaml-cpp/yaml-cpp-targets.cmake:53 (add_library):
  ADD_LIBRARY called with SHARED option but the target platform does not
  support dynamic linking.  Building a STATIC library instead.  This may lead
  to problems.
Call Stack (most recent call first):
  C:/opt/x64-windows/share/yaml-cpp/yaml-cpp-config.cmake:11 (include)
  C:/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:215 (include)
  C:/projects/temp/tkDNN/build/CMakeFiles/3.20.2/CMakeSystem.cmake:6 (include)
  C:/projects/temp/tkDNN/build/CMakeFiles/CMakeTmp/CMakeLists.txt:3 (project)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x86/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
CMake Warning (dev) at C:/opt/x64-windows/share/yaml-cpp/yaml-cpp-targets.cmake:53 (add_library):
  ADD_LIBRARY called with SHARED option but the target platform does not
  support dynamic linking.  Building a STATIC library instead.  This may lead
  to problems.
Call Stack (most recent call first):
  C:/opt/x64-windows/share/yaml-cpp/yaml-cpp-config.cmake:11 (include)
  C:/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:215 (include)
  C:/projects/temp/tkDNN/build/CMakeFiles/3.20.2/CMakeSystem.cmake:6 (include)
  C:/projects/temp/tkDNN/build/CMakeFiles/CMakeTmp/CMakeLists.txt:3 (project)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x86/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2 (found suitable version "10.2", minimum required is "9.0")
-- Found CUDNN: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2/lib/x64
-- Found CUDNN include: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2/include
-- Found NVINFER: C:/projects/TensorRT-7.2.3.4/lib/nvinfer.lib
-- Found NVINFER include: C:/projects/TensorRT-7.2.3.4/include
-- Found CUDNN: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2/lib/x64
Eigen DIR: C:/opt/x64-windows/include/eigen3
-- Found OpenCV: C:/opt/x64-windows (found version "4.5.3")
CMake Error at C:/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:788 (_find_package):
  Could not find a configuration file for package "yaml-cpp" that is
  compatible with requested version "".

  The following configuration files were considered but not accepted:

    C:/Program Files (x86)/YAML_CPP/share/cmake/yaml-cpp/yaml-cpp-config.cmake, version: 0.6.3 (64bit)
    C:/opt/x64-windows/share/yaml-cpp/yaml-cpp-config.cmake, version: 0.7.0 (64bit)

Call Stack (most recent call first):
  CMakeLists.txt:62 (find_package)

-- Configuring incomplete, errors occurred!
See also "C:/projects/temp/tkDNN/build/CMakeFiles/CMakeOutput.log".
Fistcar commented 2 years ago

I was able to get rid of the static vs dynamic warnings about YAML, but I still cannot complete cmake successfully. Do you have any suggestions of what I might be doing wrong? I've tried to make tkDNN work on windows for days now. It works fine on Linux, but will not build on windows. I tried using Ninja, just Visual Studio, NMake, it does not matter the cmake throws errors. I did get cmake-gui to create a visual studio project that claims to have included everything including yaml, however when I try to build that it cannot find NvInfer.h which is very puzzling as cmake says it found cuda and cudnn. I've even tried windows 10 20H2 and Server 2019, I get the same issue on both versions of windows.

c:\projects\temp\tkDNN\build>cmake -DCMAKE_BUILD_TYPE=Release -DCUDNN_LIBRARY="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\lib\x64" -DCUDNN_INCLUDE_DIR="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\include" -DCMAKE_TOOLCHAIN_FILE=C:\projects\vcpkg\scripts\buildsystems\vcpkg.cmake -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE="C:\opt\x64-windows\share\yaml-cpp\yaml-cpp-config-version.cmake" -DVCPKG_LIBRARY_LINKAGE=dynamic -G"Ninja" ..
CMake Warning (dev) at CMakeLists.txt:21:
  Syntax Warning in cmake code at column 30

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is MSVC 19.29.30136.0
-- The CXX compiler identification is MSVC 19.29.30136.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x86/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x86/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2 (found suitable version "10.2", minimum required is "9.0")
-- Found CUDNN: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2/lib/x64
-- Found CUDNN include: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2/include
-- Found NVINFER: C:/projects/TensorRT-7.2.3.4/lib/nvinfer.lib
-- Found NVINFER include: C:/projects/TensorRT-7.2.3.4/include
-- Found CUDNN: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2/lib/x64
Eigen DIR: C:/opt/x64-windows/include/eigen3
-- Found OpenCV: C:/opt/x64-windows (found version "4.5.3")
CMake Error at C:/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:788 (_find_package):
  Could not find a configuration file for package "yaml-cpp" that is
  compatible with requested version "".

  The following configuration files were considered but not accepted:

    C:/Program Files (x86)/YAML_CPP/share/cmake/yaml-cpp/yaml-cpp-config.cmake, version: 0.6.3 (64bit)
    C:/opt/x64-windows/share/yaml-cpp/yaml-cpp-config.cmake, version: 0.7.0 (64bit)

Call Stack (most recent call first):
  CMakeLists.txt:62 (find_package)

-- Configuring incomplete, errors occurred!
See also "C:/projects/temp/tkDNN/build/CMakeFiles/CMakeOutput.log".
perseusdg commented 2 years ago

Regarding not being able to find the nvinfer.h file ,try putting tensorrt(include,bins and lib64) in the cuda directory itself like you did with cudnn,and the yaml-cpp issue you have ,i was unable to replicate your issue so i am afraid i am not of much help there

Fistcar commented 2 years ago

Interesting, I wonder how our environments are different then? I ran into issues instantly trying to follow only the directions here: https://github.com/ceccocats/tkDNN/blob/master/docs/windows.md . Simply following the directions as written results in errors for me. The vcpkg step worked fine.

c:\projects\vcpkg>vcpkg.exe install opencv4[cuda,nonfree,contrib,eigen,tbb,jpeg,tiff,opengl,openmp,png,ffmpeg]:x64-windows yaml-cpp:x64-windows eigen3:x64-windows --x-install-root=C:\opt --x-buildtrees-root=C:\temp_vcpkg_build
Computing installation plan...
The following packages are already installed:
    eigen3[core]:x64-windows -> 3.3.9#1
    opencv4[contrib,core,cuda,dnn,eigen,ffmpeg,jpeg,nonfree,opengl,openmp,png,quirc,tbb,tiff,webp]:x64-windows -> 4.5.3#3
    yaml-cpp[core]:x64-windows -> 0.7.0#1
Package eigen3:x64-windows is already installed
Package opencv4:x64-windows is already installed
Package yaml-cpp:x64-windows is already installed
Restored 0 packages from C:\Users\user\AppData\Local\vcpkg\archives in 118 us. Use --debug to see more details.

Total elapsed time: 3.587 ms

The package eigen3 provides CMake targets:

    find_package(Eigen3 CONFIG REQUIRED)
    target_link_libraries(main PRIVATE Eigen3::Eigen)

The package opencv4 provides CMake targets:

    find_package(OpenCV CONFIG REQUIRED)
    # Note: 60 target(s) were omitted.
    target_link_libraries(main PRIVATE opencv_ml opencv_dnn opencv_dpm opencv_hdf)

The package yaml-cpp provides CMake targets:

    find_package(yaml-cpp CONFIG REQUIRED)
    target_link_libraries(main PRIVATE yaml-cpp)

c:\projects\vcpkg>

I run into issues when trying to use cmake as outlined in the instructions:

c:\projects\temp\tkDNN>mkdir build

c:\projects\temp\tkDNN>cd build

c:\projects\temp\tkDNN\build>cmake -DCMAKE_BUILD_TYPE=Release -G"Ninja" ..
CMake Warning (dev) at CMakeLists.txt:21:
  Syntax Warning in cmake code at column 30

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:3 (project):
  No CMAKE_C_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.

CMake Error at CMakeLists.txt:3 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!
See also "C:/projects/temp/tkDNN/build/CMakeFiles/CMakeOutput.log".
See also "C:/projects/temp/tkDNN/build/CMakeFiles/CMakeError.log".

c:\projects\temp\tkDNN\build>

I tried adding the compiler variables to the command line but that still resulted in an issue:

c:\projects\temp\tkDNN>mkdir build

c:\projects\temp\tkDNN>cd build

c:\projects\temp\tkDNN\build>cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER="C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe" -DCMAKE_CXX_COMPILER="C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe" -G"Ninja" ..
CMake Warning (dev) at CMakeLists.txt:21:
  Syntax Warning in cmake code at column 30

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is MSVC 19.29.30136.0
-- The CXX compiler identification is MSVC 19.29.30136.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.20/Modules/CMakeTestCCompiler.cmake:66 (message):
  The C compiler

    "C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: C:/projects/temp/tkDNN/build/CMakeFiles/CMakeTmp

    Run Build Command(s):C:/opt/x64-windows/bin/ninja.exe cmTC_6b62f && [1/2] Building C object CMakeFiles\cmTC_6b62f.dir\testCCompiler.c.obj
    [2/2] Linking C executable cmTC_6b62f.exe
    FAILED: cmTC_6b62f.exe
    cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_6b62f.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests  -- C:\PROGRA~2\MICROS~3\2019\PROFES~1\VC\Tools\MSVC\1429~1.301\bin\Hostx64\x64\link.exe /nologo CMakeFiles\cmTC_6b62f.dir\testCCompiler.c.obj  /out:cmTC_6b62f.exe /implib:cmTC_6b62f.lib /pdb:cmTC_6b62f.pdb /version:0.0 /machine:x64  /debug /INCREMENTAL /subsystem:console  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
    RC Pass 1: command "rc /fo CMakeFiles\cmTC_6b62f.dir/manifest.res CMakeFiles\cmTC_6b62f.dir/manifest.rc" failed (exit code 0) with the following output:
    The system cannot find the file specified
    ninja: build stopped: subcommand failed.

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:3 (project)

-- Configuring incomplete, errors occurred!
See also "C:/projects/temp/tkDNN/build/CMakeFiles/CMakeOutput.log".
See also "C:/projects/temp/tkDNN/build/CMakeFiles/CMakeError.log".

c:\projects\temp\tkDNN\build>

Using cmake-gui I run into the same issues. I had previously used cmake by launching it from inside the Visual Studio using the Developer Command Prompt. cmake seems to know more about the windows compiler when launched from here. All of my previous posts in this thread was from cmake output from the Visual Studio Developer Command Prompt. Me using cmake-gui launched from Visual Studio Developer Command Prompt: image I try to do the ninja as instructed, but there is an error finding CUDNN. image I add the dir to find CUDNN and then I get the yaml error. If I put in the yaml dir manually to cmake-gui I still get the same error. image Am I following the instructions wrong? They don't seem to work for me as-is, so I started fixing things, but I can't get past yaml. I can try what you suggest about nvinfer.h not being found but it will take me some time. If you have any more ideas about what I am doing wrong, or what is going wrong I would really appreciate to hear them. Thank you.

perseusdg commented 2 years ago

can you try building it from the developer command prompt?(https://docs.microsoft.com/en-us/cpp/build/how-to-enable-a-64-bit-visual-cpp-toolset-on-the-command-line?view=msvc-160)

if that doesn't work ,can you try using the master branch on my fork https://github.com/perseusdg/tkDNN (build it from the developer command prompt)

Fistcar commented 2 years ago

That was it! Thank you! Using the x64 command prompt fix it instantly. Cmake now completes successfully. It might be worth adding to the instructions to use this command prompt to build. I did not have to add any extra cudnn or compiler variables for cmake to work. image Sadly, ninja threw an error, but I will keep at it.

c:\projects\temp\tkDNN\build>cmake -DCMAKE_BUILD_TYPE=Release -G"Ninja" ..
CMake Warning (dev) at CMakeLists.txt:21:
  Syntax Warning in cmake code at column 30

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is MSVC 19.29.30136.0
-- The CXX compiler identification is MSVC 19.29.30136.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2 (found suitable version "10.2", minimum required is "9.0")
-- Found CUDNN: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2/lib/x64/cudnn.lib
-- Found CUDNN include: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2/include
-- Found NVINFER: C:/projects/TensorRT-7.2.3.4/lib/nvinfer.lib
-- Found NVINFER include: C:/projects/TensorRT-7.2.3.4/include
-- Found CUDNN: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2/lib/x64/cudnn.lib
Eigen DIR: C:/opt/x64-windows/include/eigen3
-- Found OpenCV: C:/opt/x64-windows (found version "4.5.3")
install dir:C:/Program Files (x86)/tkDNN
-- Configuring done
-- Generating done
-- Build files have been written to: C:/projects/temp/tkDNN/build

c:\projects\temp\tkDNN\build>ninja -j4
[1/149] Building NVCC (Device) object CMakeFiles/kernels.dir/src/kernels/kernels_generated_activation_logistic.cu.obj
activation_logistic.cu
activation_logistic.cu
[2/149] Building NVCC (Device) object CMakeFiles/kernels.dir/src/kernels/kernels_generated_activation_elu.cu.obj
activation_elu.cu
activation_elu.cu
[3/149] Building NVCC (Device) object CMakeFiles/kernels.dir/src/kernels/kernels_generated_convert.cu.obj
convert.cu
convert.cu
[4/149] Building NVCC (Device) object CMakeFiles/kernels.dir/src/kernels/kernels_generated_activation_leaky.cu.obj
activation_leaky.cu
activation_leaky.cu
[5/149] Building NVCC (Device) object CMakeFiles/kernels.dir/src/kernels/kernels_generated_activation_mish.cu.obj
activation_mish.cu
activation_mish.cu
[6/149] Building NVCC (Device) object CMakeFiles/kernels.d...c/kernels/kernels_generated_activation_relu_ceiling.cu.obj
activation_relu_ceiling.cu
activation_relu_ceiling.cu
[7/149] Building NVCC (Device) object CMakeFiles/kernels.dir/src/kernels/kernels_generated_deformable_conv.cu.obj
deformable_conv.cu
deformable_conv.cu
[8/149] Building NVCC (Device) object CMakeFiles/kernels.dir/src/kernels/kernels_generated_normalize.cu.obj
normalize.cu
C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/ActivationLeakyRT.h(54): warning: variable "a" was declared but never referenced

C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/ActivationReLUCeilingRT.h(54): warning: variable "a" was declared but never referenced

C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/ActivationMishRT.h(55): warning: variable "a" was declared but never referenced

C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/ReorgRT.h(55): warning: variable "a" was declared but never referenced

C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/RegionRT.h(76): warning: variable "a" was declared but never referenced

C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/RouteRT.h(78): warning: variable "a" was declared but never referenced

C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/ShortcutRT.h(62): warning: variable "a" was declared but never referenced

C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/YoloRT.h(95): warning: variable "a" was declared but never referenced

C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/UpsampleRT.h(57): warning: variable "a" was declared but never referenced

C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/ResizeLayerRT.h(55): warning: variable "a" was declared but never referenced

C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/DeformableConvRT.h(119): warning: variable "a" was declared but never referenced

C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/FlattenConcatRT.h(68): warning: variable "a" was declared but never referenced

C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/ReshapeRT.h(53): warning: variable "a" was declared but never referenced

C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/MaxPoolingFixedSizeRT.h(58): warning: variable "a" was declared but never referenced

normalize.cu
[9/149] Building NVCC (Device) object CMakeFiles/kernels.dir/src/kernels/kernels_generated_fill.cu.obj
fill.cu
fill.cu
[10/149] Building NVCC (Device) object CMakeFiles/kernels.dir/src/kernels/kernels_generated_activation_sigmoid.cu.obj
activation_sigmoid.cu
activation_sigmoid.cu
[11/149] Building NVCC (Device) object CMakeFiles/kernels.dir/src/kernels/kernels_generated_scaladd.cu.obj
scaladd.cu
scaladd.cu
[12/149] Building NVCC (Device) object CMakeFiles/kernels.dir/src/kernels/kernels_generated_shortcut.cu.obj
shortcut.cu
shortcut.cu
[13/149] Building NVCC (Device) object CMakeFiles/kernels.dir/src/kernels/kernels_generated_resize.cu.obj
resize.cu
resize.cu
[14/149] Building NVCC (Device) object CMakeFiles/kernels.dir/src/kernels/kernels_generated_reorg.cu.obj
reorg.cu
reorg.cu
[15/149] Building NVCC (Device) object CMakeFiles/kernels.dir/src/kernels/kernels_generated_pooling.cu.obj
pooling.cu
pooling.cu
[16/149] Building NVCC (Device) object CMakeFiles/kernels.dir/src/kernels/kernels_generated_softmax.cu.obj
softmax.cu
softmax.cu
[17/149] Building NVCC (Device) object CMakeFiles/kernels.dir/src/kernels/kernels_generated_upsample.cu.obj
upsample.cu
upsample.cu
[18/149] Building NVCC (Device) object CMakeFiles/kernels.dir/src/kernels/kernels_generated_postprocessing.cu.obj
postprocessing.cu
C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/ActivationLeakyRT.h(54): warning: variable "a" was declared but never referenced

C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/ActivationReLUCeilingRT.h(54): warning: variable "a" was declared but never referenced

C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/ActivationMishRT.h(55): warning: variable "a" was declared but never referenced

C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/ReorgRT.h(55): warning: variable "a" was declared but never referenced

C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/RegionRT.h(76): warning: variable "a" was declared but never referenced

C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/RouteRT.h(78): warning: variable "a" was declared but never referenced

C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/ShortcutRT.h(62): warning: variable "a" was declared but never referenced

C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/YoloRT.h(95): warning: variable "a" was declared but never referenced

C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/UpsampleRT.h(57): warning: variable "a" was declared but never referenced

C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/ResizeLayerRT.h(55): warning: variable "a" was declared but never referenced

C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/DeformableConvRT.h(119): warning: variable "a" was declared but never referenced

C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/FlattenConcatRT.h(68): warning: variable "a" was declared but never referenced

C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/ReshapeRT.h(53): warning: variable "a" was declared but never referenced

C:\projects\temp\tkDNN\include\tkDNN\pluginsRT/MaxPoolingFixedSizeRT.h(58): warning: variable "a" was declared but never referenced

postprocessing.cu
[19/149] Building NVCC intermediate link file CMakeFiles/kernels.dir/kernels_intermediate_link.obj
kernels_generated_activation_elu.cu.obj
kernels_generated_activation_leaky.cu.obj
kernels_generated_activation_logistic.cu.obj
kernels_generated_activation_mish.cu.obj
kernels_generated_activation_relu_ceiling.cu.obj
kernels_generated_activation_sigmoid.cu.obj
kernels_generated_convert.cu.obj
kernels_generated_deformable_conv.cu.obj
kernels_generated_fill.cu.obj
kernels_generated_normalize.cu.obj
kernels_generated_pooling.cu.obj
kernels_generated_postprocessing.cu.obj
kernels_generated_reorg.cu.obj
kernels_generated_resize.cu.obj
kernels_generated_scaladd.cu.obj
kernels_generated_shortcut.cu.obj
kernels_generated_softmax.cu.obj
kernels_generated_upsample.cu.obj
[23/149] Building CXX object CMakeFiles\demoTracker.dir\demo\demo\demoTracker.cpp.obj
FAILED: CMakeFiles/demoTracker.dir/demo/demo/demoTracker.cpp.obj
C:\PROGRA~2\MICROS~3\2019\PROFES~1\VC\Tools\MSVC\1429~1.301\bin\Hostx64\x64\cl.exe  /nologo /TP -DTKDNN_PATH=\"C:/projects/temp/tkDNN\" -I..\include\tkDNN -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\include" -IC:\projects\TensorRT-7.2.3.4\include -IC:\opt\x64-windows\include\eigen3 -I..\include -IC:\opt\x64-windows\include /O2 /FS /EHsc -DOPENCV /O2 /Ob2 /DNDEBUG -MD /showIncludes /FoCMakeFiles\demoTracker.dir\demo\demo\demoTracker.cpp.obj /FdCMakeFiles\demoTracker.dir\ /FS -c ..\demo\demo\demoTracker.cpp
..\include\tkDNN\demo_utils.h(20): error C2653: 'cv': is not a class or namespace name
..\include\tkDNN\demo_utils.h(20): error C2061: syntax error: identifier 'Mat'
..\demo\demo\demoTracker.cpp(79): error C2660: 'readCalibrationMatrix': function does not take 2 arguments
..\include\tkDNN\demo_utils.h(20): note: see declaration of 'readCalibrationMatrix'
[26/149] Building CXX object CMakeFiles\test_viz_yolo3.dir\tests\darknet\viz_yolo3.cpp.obj
ninja: build stopped: subcommand failed.

c:\projects\temp\tkDNN\build>
perseusdg commented 2 years ago

the current master branch has some issues with using it on windows ,you can use this repo at this point https://github.com/ceccocats/tkDNN/tree/c306b368608893e92925bf143e7cf14f19525aeb or you can use the master branch here https://github.com/perseusdg/tkDNN(i fixed most of the compile issues on the current master branch ..though semantic segmentation doesn't work on windows) ..you can read up on this issue to know more https://github.com/ceccocats/tkDNN/issues/252

Fistcar commented 2 years ago

Thank you very much. Using the alternate repo and the checkout of a specific branch from master you posted I was able to build and run using ninja and just visual studio, after I did what you suggested and installed TensorRT and cudnn into the cuda directory itself. Sadly, there are many overlapping names in those programs so I am not sure how this will effect my other programs that just need cuda to run, but I backed up the old dir to figure that out.