Hi Dario,
Thanks for your help, got it.
I tried then with version 12.3.x of CUDA but it seems there's a bug with
Ubuntu 22.04 related to the DKMS build of the driver
(https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-545/+bug/2065139)
so I finally used version 12.4.0 and the compilation goes on but now it
stops with this error:
[ 35%] Building NVCC (Device) object
src/chrono_fsi/CMakeFiles/ChronoEngine_fsi.dir/utils/ChronoEngine_fsi_generated_ChUtilsPrintSph.cu.o
In file included from
/home/operator1/chrono-9.0.0/src/chrono_fsi/utils/ChUtilsPrintSph.cu:23:
/home/operator1/chrono-9.0.0/src/chrono_fsi/utils/ChUtilsPrintSph.cuh:26:10:
fatal error: chrono_thirdparty/chpf/particle_writer.hpp: No such file or
directory
26 | #include "chrono_thirdparty/chpf/particle_writer.hpp"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMake Error at
ChronoEngine_fsi_generated_ChUtilsPrintSph.cu.o.Release.cmake:216 (message):
Error generating
/home/operator1/chrono-9.0.0-build/src/chrono_fsi/CMakeFiles/ChronoEngine_fsi.dir/utils/./ChronoEngine_fsi_generated_ChUtilsPrintSph.cu.o
make[2]: ***
[src/chrono_fsi/CMakeFiles/ChronoEngine_fsi.dir/build.make:140:
src/chrono_fsi/CMakeFiles/ChronoEngine_fsi.dir/utils/ChronoEngine_fsi_generated_ChUtilsPrintSph.cu.o]
Error 1
make[1]: *** [CMakeFiles/Makefile2:1582:
src/chrono_fsi/CMakeFiles/ChronoEngine_fsi.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
This seems related to Chrono to me, this time. That file is not in the
source dir. Any ideas?
I used the same configuration options of the previous tries, with a
clean directory.
Thanks again.
Have a nice day.
MDP
Il 12/06/24 14:54, Dario Mangoni ha scritto:
Hi MDP,
Chrono is not currently compatible with CUDA 12.5.
We recommend sticking with 12.3 until the fix will come!
Dario
Il giorno mercoledì 12 giugno 2024 alle 12:46:57 UTC+2 MDP ha scritto:
Dear all,
I'm writing here to ask your help with my installation of
ProjectChrono, that fails independently of the version.
Here the system: a Dell workstation with two NVIDIA RTX A4000,
Ubuntu 22.04 LTS x64 (server) with CUDA 12.5 (installed with .deb
method).
I want to run ProjectChrono 9.0.0 with lot of modules and, after
installing CUDA (please see the attached file
"dpkg_CUDA12.5_ProjectChrono9.0.0.txt"), I followed this procedure:
# Installing common required packages
sudoaptinstallgitcmake makeautomake g++ gcc mpich libeigen3-dev
libirrlicht-dev swig python3-dev occt-misc
libocct-data-exchange-dev libocct-draw-dev libocct-foundation-dev
libocct-modeling-data-dev libocct-ocaf-dev
libocct-visualization-dev libgl-dev libglew-dev libglfw3-dev
libglm-dev
# Compiling Blaze for the MULTICORE module
sudoaptinstalllibblas-dev liblapack-dev libboost-all-dev
wgethttps://bitbucket.org/blaze-lib/blaze/downloads/blaze-3.8.2.tar.gz
tar
xvf blaze-3.8.2.tar.gz
mkdirblaze-3.8.2-build &&cdblaze-3.8.2-build
cmake ../blaze-3.8.2 -DCMAKE_INSTALL_PREFIX=/usr/local/blaze-3.8.2
make&&sudomakeinstall
# Compiling DEM-Engine
git clone https://github.com/projectchrono/DEM-Engine.git
git submodule init
git submodule update
mkdir build && cd build
# Append in "/etc/profile"
#
# export
CPATH=/usr/local/cuda/targets/x86_64-linux/include${CPATH:+:${CPATH}}
# export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}
# export PATH=/usr/local/cuda/lib64/cmake${PATH:+:${PATH}}
# export
LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
# export CUDA_HOME=/usr/local/cuda
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr/local/DEM-Engine \
..
make && sudo make install
# ProjectChrono itself
wget
https://github.com/projectchrono/chrono/archive/refs/tags/9.0.0.tar.gz
tar xvf 9.0.0.tar.gz
mkdir chrono-9.0.0-build && cd chrono-9.0.0-build
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr/local/chrono-9.0.0 \
-DENABLE_MODULE_FSI=1 \
-DENABLE_MODULE_IRRLICHT=1 \
-DENABLE_MODULE_MATLAB=1 \
-DMATLAB_SDK_ROOT=/usr/local/MATLAB/R2023b/extern \
-DENABLE_MODULE_CASCADE=1 \
-DENABLE_MODULE_OPENGL=1 \
-DENABLE_MODULE_POSTPROCESS=1 \
-DENABLE_MODULE_PYTHON=1 \
-DPYTHON_INCLUDE_DIR=$(python3 -c "import sysconfig;
print(sysconfig.get_path('include'))") \
-DPYTHON_LIBRARY=$(python3 -c "import sysconfig;
print(sysconfig.get_config_var('LIBDIR'))") \
-DENABLE_MODULE_VEHICLE=1 \
-DENABLE_MODULE_MULTICORE=1 \
-DBLAZE_INSTALL_DIR=/usr/local/blaze-3.8.2/include/ \
../chrono-9.0.0
Attached you can find the output of the last "cmake" command, in
file "cmake_command_output.txt", and also "CPackConfig.cmake",
"Makefile" and "CMakeCache.txt".
I get an error with some include of CUDA .cuh files, as you can
see in file "make_command_output.txt".
Same error with versions 8.0.0 and upstream (just a git clone),
and I cannot understand if I miss some cmake/make options or if is
related to some CUDA missing package.
Many thanks in advance for your help!
Have a nice day.
MDP
--
You received this message because you are subscribed to the Google Groups
"ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to projectchrono+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/projectchrono/7d01493d-7a06-4261-bc3d-e8047e262546%40gmail.com.