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" 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]<mailto:[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/PH0PR06MB8237F8BE43BBA2DAD2E96192A7CCA%40PH0PR06MB8237.namprd06.prod.outlook.com.

Reply via email to