I am trying to write a basic program to read a csv into a cudf with libcudf. I have installed libcudf by installing the RAPIDS conda environment. I am trying to use this command to build my executable:
nvcc -c csv_read.cu -o csv_read.o -I$CONDA_PREFIX/include -L$CONDA_PREFIX/lib*
I keep producing the error fatal error: spdlog/fmt/bundled/core.h: No such file or directory. with regards to this line: include <spdlog/fmt/bundled/core.h>. Upon inspection of the spdlog/fmt directory only these files exist: bin_to_hex.h chrono.h compile.h fmt.h ostr.h ranges.h std.h xchar.h
No sign of a bundled directory.
These are my include statements for reference:
#include <cudf/io/csv.hpp>
#include <cudf/table/table_view.hpp>
#include <cudf/table/table.hpp>
#include <cudf/column/column_view.hpp>
Any advice on how to resolve this issue would be greatly appreciated.
I have tried using commands such as this to build the code: nvcc -c multi_gpu_sort.cu -o multi_gpu_sort.o -I$CONDA_PREFIX/include -L$CONDA_PREFIX/lib -lspdlog -lfmt
I have also tried specifying the exact include paths to spdlog and fmt.
conda listfor the environment from which you are trying to compile this?The RAPIDS environmentis quite unclear in terms of reproducibility of your issueconda listshould help.conda list. I am using the conda environment you can create from the nvidia rapids AI suite found at this link [](docs.rapids.ai/install?_gl=1). Here is the command I used to create the conda environmentconda create -n rapids-24.06 -c rapidsai -c conda-forge -c nvidia \ rapids=24.06 python=3.11 cuda-version=11.8conda listis quite long, but if you want to reproduce the issue you can create the conda environment from my other comment and try to compile a .cu file with the include statements from OP. A command such asnvcc -c your_file.cu -o your_file.o -I$CONDA_PREFIX/include -L$CONDA_PREFIX/libshould do the trick.conda listis quite long, but if you want to reproduce the issue you can check link and try to create your own environment. Here is the exact command I used:conda create -n rapids-24.06 -c rapidsai -c conda-forge -c nvidia \ rapids=24.06 python=3.11 cuda-version=11.8. Btw, fromconda list: spdlog 1.12.0 hd2e6256_2 conda-forge, fmt 10.2.1 h00ab1b0_0 conda-forge