NVIDIA / DALI

A GPU-accelerated library containing highly optimized building blocks and an execution engine for data processing to accelerate deep learning training and inference applications.
https://docs.nvidia.com/deeplearning/dali/user-guide/docs/index.html
Apache License 2.0
5.1k stars 615 forks source link

Build dali from sourcecode failed #5651

Open south-ocean opened 6 days ago

south-ocean commented 6 days ago

Describe the question.

when i compile the dali, and cmake command is cmake -D CMAKE_BUILD_TYPE=Release -D BUILD_NVJPEG=OFF -D BUILD_NVJPEG2K=OFF -D BUILD_NVOF=OFF -D BUILD_NVDEC=OFF -D BUILD_NVML=OFF -D BUILD_CVCUDA=OFF -D BUILD_CVCUDA=OFF -D BUILD_CUFILE=OFF -D BUILD_NVIMGCODEC=OFF -D BUILD_PYTHON=ON .. , but it return an error fatal error: 'caffe/util/half.cuh' file not found, but i can't find this file in system and dali folser, Can you tell me the file path?

Image Image

Check for duplicates

JanuszL commented 5 days ago

Hi @south-ocean,

Thank you for reaching out. I see that the offending lines are redundant and can be safely removed (https://github.com/NVIDIA/DALI/pull/5653). Also, they are wrapped around by #ifdef __CUDA_ARCH__ that should evaluate to false for the host code. Can you tell me more about your development environment (host and CUDA compiler versions)?

mzient commented 4 days ago

Hello @south-ocean There's something very nonstandard in your setup. The offending #include is guarded with #ifdef __CUDA_ARCH__. __CUDA_ARCH__ should not be defined in a translation unit types.cc, which should not be compiled with NVCC.