1. In Chrono::Multicore, the GPU is used for other types of simulation (an MPM code which is currently not actively maintained). The GPU in that model is not used to accelerate granular dynamics. 2. Currently, the Chrono::GPU module only supports run-time visualization through Chrono::OpenGL (no VSG support at this time). To get that going, you will need to set ENABLE_MODULE_OPENGL to “on” during CMake configuration and have various GL dependency libraries available. See the corresponding installation page for that module. 3. Beware of using runtime visualization with any of the GPU-0based codes. That slows down the overall simulation by quite a bit (since data needs to be transferred back and forth between the GPU and the CPU). This should only be used as a way to verify your model and simulation, and then disabled for performance runs.
Regarding the errors you get while installing the VSG dependencies: 1. It seems that you are using an older version of the Chrono code. Please pull the latest code from the ‘main’ git branch. The ‘buidVSG.bat’ script in this latest code should attempt to build vsg v 1.0.7 (and not 1.0.5 as your message indicates) 2. If you want us to be able to help, please provide more complete information. In this case, please run the buildVSG.bat script from a terminal, redirect output to a file, and share that output with us. Make sure you follow the instructions in the comments at the top of buildVSG.bat and, as indicated there, edit the script as appropriate. --Radu From: 'Page' via ProjectChrono <[email protected]> Sent: Wednesday, October 18, 2023 10:37 AM To: ProjectChrono <[email protected]> Subject: Re: [chrono] Thrust library and PARALLEL module install faild Hi,Radu Thank you very much for your answer, I found the question :(Run the script from a terminal (not by double clicking on it!) I have successfully run the multicore module demo, but I still have the following questions: 1. I saw in the multicore module demo that both CPU and GPU worked, but when I increased the number of particles, the picture was very slow, and I didn't understand, Why is the GPU in the calculation, the simulation picture is still very slow? 2.So I tried to use GPU module, when running GPU module, there was no rendering window, is it because I did not install VSG module? so I tried to install VSG module, there was a problem when installing VSG module, I ran the buildVSG.bat script in the terminal,Each time I run it I get same errors, such as Failed to clone 'src/implot'. and Failed to clone 'src/imgui'. CMake Warning at CMakeLists.txt:25 (find_package): By not providing "Findvsg.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "vsg", but CMake did not find one. Could not find a package configuration file provided by "vsg" (requested version 1.0.5) with any of the following names: vsgConfig.cmake vsg-config.cmake Add the installation prefix of "vsg" to CMAKE_PREFIX_PATH or set "vsg_DIR" to a directory containing one of the above files. If "vsg" provides a separate development package or SDK, be sure it has been installed. in C:\Packages\vsg\lib\cmake only generated 3 files :assimp-5.2,vsg,vsgXchange, no vsgImGui, what did I do wrong? Thank you very much for developing such a powerful engine 在2023年10月13日星期五 UTC+8 14:07:27<Radu Serban> 写道: Page, I just rechecked that the buildGL.bat script provided with the Chrono distribution, and everything works as expected. 1. Make sure you have the latest Chrono code. 2. As indicated in the installation instruction on the Chrono webpage, you should maybe copy the script in a temporary directory and edit it to change settings as needed on your machine (e.g., change where the GL dependencies will be installed). 3. Run the script from a terminal (not by double clicking on it!). This script will download, uncompress, configure, build, and install the GL dependency libraries. 4. When running, the script will create additional subdirectories. Check that the ‘download_gl/’ directory contains the expected downloaded packages. Check that the ‘build_glew/’ and ‘build_glfw/’ directories were created. 5. Check the output of running the buildGL.bat script to figure out what goes wrong in your case. 6. Finally, check that the installation directory (the location you selected when editing your local copy of the script in step 2 above) contains 3 subdirectories, named ‘bin/’, ‘include/’, and ‘lib/’. Once you successfully get the GL dependencies built and installed, when configuring Chrono with CMake, you will need to set the GLEW_DIR and GLM_INCLUDE_DIR variables appropriately to point to the corresponding directories in the GL install directory. --Radu From: 'Page' via ProjectChrono <[email protected]> Sent: Friday, October 13, 2023 3:52 AM To: ProjectChrono <[email protected]> Subject: Re: [chrono] Thrust library and PARALLEL module install faild Hi,Radu Thanks for your reply, I found the multicore module. The Demo ran successfully, but I still have to install the OpengGL module for visualization, as per this page https://api.projectchrono.org/module_opengl_installation.html to install opengl,after clicking builtsl.bat, in my C:\Packages\gl directory only the include file is generated, and there is no lib folder as described in the documentation CMake Error at D:/CMake/cmake-3.27.6-windows-x86_64/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find GLEW (missing: GLEW_INCLUDE_DIRS GLEW_LIBRARIES) Call Stack (most recent call first): D:/CMake/cmake-3.27.6-windows-x86_64/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) D:/CMake/cmake-3.27.6-windows-x86_64/share/cmake-3.27/Modules/FindGLEW.cmake:238 (find_package_handle_standard_args) src/chrono_opengl/CMakeLists.txt:42 (find_package) I need your help 在2023年10月11日星期三 UTC+8 13:45:21<Radu Serban> 写道: The “parallel” module was renamed (a long time ago) to the “multicore” module. This is why you cannot find it or enable it during CMake configuration. (As a side note, I have no idea where/how you got the link you posted below!) Having said that, this multicore module offers parallelization through OpenMP. For better performance, you should look at the Chrono::GPU module which also offers DEM capabilities (albeit only the so-called “penalty formulation”) or better yet to the newer DEME<https://github.com/projectchrono/DEM-Engine> package. The latter two are GPU codes (based on CUDA, hence requiring an Nvidia GPU). Note that the Thrust library comes with any recent CUDA distribution, so there’s nothing you need to do about Thrust if you install CUDA (which you will need anyway if you want to use any of the GPU codes). The Chrono::Multicore module also requires Thrust (but uses its OpenMP backend). If you do not have an Nvidia GPU and only want to use the Chrono::Multicore module, you can indeed get Thrust stand-alone. But even then, Thrust is a headers-only library, so there’s no need to build anything to be able to use it. --Radu From: 'Page' via ProjectChrono <[email protected]> Sent: Wednesday, October 11, 2023 4:38 AM To: ProjectChrono <[email protected]> Subject: [chrono] Thrust library and PARALLEL module install faild Hello All, I'm beginner to chrono, and I'm particularly interested in small particle fluid simulation, so I downloaded the source code for demo_MBS_sph, but it's very slow and I want to learn how to use a GPU for acceleration. So I downloaded the demo_GPU_ballCosim source code to study, but couldn't figure out why it didn't have a visual rendering window. I wanted to use the PARALLEL module, but I had a problem installing it. 1. After the Thrust library was downloaded, it took 6 hours to build and 4 errors occurred. error MSB3721: The command "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\bin\nvcc.exe" -- use-local-env-ccbin "E:\VS2022\IDE\VC\Tools\MSVC\14.33.31629\bin\HostX64\x64" -x cu-IE :\Chrono\Thrust\thrust\testing -IE:\Chrono\Thrust\thrust\thrust\cmake\.. \.. -IE:\Chrono\Thrust\thrust\dependencies\libcudacxx\include -IE:\Chrono\Thrust\thrust\dependencies\cub\cub\cmake\.. \.. -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\include" --keep-dir x64\ Debug-maxrregcount =0 --machine 64 --compile -cudart static -gencode arch=compute_90,code=compute_90 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_62,code=sm_62 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_72,code=sm_72 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_90,code=sm_90 -std=c++14 -Xcudafe=--display_error_number -Wno-deprecated-gpu-targets -Xcudafe=--promote_warnings -Xcompiler="/EHsc -Zi -Ob0 /wd4324 /wd4505 /wd4706 /wd4244 /wd4146 /wd4494 /bigobj /wd4127" -g -D_WINDOWS -DTHRUST_TEST_DEVICE_SIDE -DTHRUST_HOST_SYSTEM=THRUST_HOST_SYSTEM_CPP -DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_CUDA -DNOMINMAX -D"CMAKE_INTDIR=\"Debug\"" -D_MBCS -D"CMAKE_INTDIR=\"Debug\"" -Xcompiler "/EHsc /W4 /nologo /Od /Fdthrust.test.copy.dir\Debug\vc143.pdb /FS /Zi /RTC1 /MDd /GR" -o thrust.test.copy.dir\Debug\copy.obj "E:\Chrono\Thrust\thrust\testing\copy.cu<http://copy.cu>" has exited, returning code 1. 81> The thrust.test.copy.vcxproj project has been generated. - Failed. 2.I will ignore these mistakes for the time being.look at the tutorial : https://api.projectchrono.org/module_parallel_installation.html to continue to do, I want to start the PARALLEL cmake configuration module, but there was no E I cmake NABLE_MODULE_PARALLEL This option. 3. I want to ask, want to see the small particle simulation project, but also want to make the project run faster, what should I do? Thank you very much. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/3728dd7f-a81b-4188-95a6-656528e2034cn%40googlegroups.com<https://groups.google.com/d/msgid/projectchrono/3728dd7f-a81b-4188-95a6-656528e2034cn%40googlegroups.com?utm_medium=email&utm_source=footer>. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/c12cb0c4-db52-4d3e-aed7-a0ebf5aca838n%40googlegroups.com<https://groups.google.com/d/msgid/projectchrono/c12cb0c4-db52-4d3e-aed7-a0ebf5aca838n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- 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 [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/af3064a1-0cd7-4ec8-bafc-4be8061c09d3n%40googlegroups.com<https://groups.google.com/d/msgid/projectchrono/af3064a1-0cd7-4ec8-bafc-4be8061c09d3n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/PH0PR06MB823700A3028D80403CE8A04FA7DAA%40PH0PR06MB8237.namprd06.prod.outlook.com.
