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" 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.

Reply via email to