Yes, it appears that the code has been compiled without errors. If the 
executables of the demos are generated it usually indicates that.

Thank you,
Ruochun

On Thursday, October 17, 2024 at 4:10:19 PM UTC+8 [email protected] wrote:

> According to the complication method on GitHub - 
> projectchrono/DEM-Engine: A dual-GPU DEM solver with complex grain geometry 
> support <https://github.com/projectchrono/DEM-Engine>, after using ninja 
> to build the project, I got a information like the figure shown below. Does 
> it means that I have complied the code?
> [image: 微信图片_20241011154510.jpg]
> Thank you,
> Weigang
> On Wednesday, October 16, 2024 at 10:09:13 PM UTC+8 Ruochun Zhang wrote:
>
>> Changing the build type should not have any impact on whether the code 
>> compiles... You probably did something else in addition to that such as 
>> updating the compiler. You should first make sure the code compiles now.
>>
>> You just need to debug a demo. When running the debugger, the classes and 
>> methods being used will be stepped into and then you know where it crashes.
>>
>> Thank you,
>> Ruochun
>>
>> On Wednesday, October 16, 2024 at 12:34:36 PM UTC+8 [email protected] 
>> wrote:
>>
>>> In fact, the code has been successfully compiled.  The previous 
>>> filesystem-related inclusion and dynamic linkage problems are resolved by  
>>> changing CMAKE_BUILD_TYPE to Release.
>>> I am not familar with using vscode to debug. So, I have an question 
>>> about the debuging process. Do you mean that i should debug the dem-engine 
>>> code, or just the demo?
>>>
>>> Thank you,
>>> Weigang
>>>
>>> On Tuesday, October 15, 2024 at 9:47:07 PM UTC+8 Ruochun Zhang wrote:
>>>
>>>> As you can see, those are compilation errors. Can you compile the code 
>>>> at all? Have the previous filesystem-related inclusion and dynamic linkage 
>>>> problems been resolved, and how?
>>>>
>>>> If you can compile the code, then you can debug it by configuring the 
>>>> launch.json file in VSCode, then step into the code line by line. For how 
>>>> to do that, I suggest searching and reading some online tutorials on this 
>>>> topic and it should be easy from there.
>>>>
>>>> Thank you,
>>>> Ruochun
>>>>
>>>> On Monday, October 14, 2024 at 6:58:52 PM UTC+8 [email protected] 
>>>> wrote:
>>>>
>>>>> I have try my best to debug. I do not know whether i have found where 
>>>>> the error failed on. 
>>>>> [image: 微信图片_20241014185545.jpg]
>>>>>
>>>>> Thank you,
>>>>> Weigang
>>>>>
>>>>> On Saturday, October 12, 2024 at 11:23:51 AM UTC+8 Ruochun Zhang wrote:
>>>>>
>>>>>> For the debugging part, not quite yet. It still just says it 
>>>>>> bad_allocs out. If you could, try interfacing the debugger with some 
>>>>>> GUI, 
>>>>>> like VSCode, then stepping into it until it fails, and let us know which 
>>>>>> line it failed on. 
>>>>>>
>>>>>> You can also get more info on memory-related failures by running the 
>>>>>> demo in valgrind or cuda-memcheck or something like them, for example 
>>>>>> *valgrind 
>>>>>> --tool=memcheck ./DEMdemo_SingleSphereCollide*, and/or *cuda-memcheck  
>>>>>> ./DEMdemo_SingleSphereCollide*.
>>>>>>
>>>>>> Thank you,
>>>>>> Ruochun
>>>>>>
>>>>>> On Friday, October 11, 2024 at 3:51:05 PM UTC+8 [email protected] 
>>>>>> wrote:
>>>>>>
>>>>>>> I have test all the demo. This error is universal for all the demos. 
>>>>>>> I have presented two figures below. For the first figure, i would like 
>>>>>>> use 
>>>>>>> it to confirm whether i complied the DEM-Engine succefully. For the 
>>>>>>> second 
>>>>>>> figure, i would like use it to confirm whether i have found where the 
>>>>>>> bad_alloc happened.
>>>>>>> [image: 微信图片_20241011154510.jpg]   [image: 微信图片_20241011154519.jpg]
>>>>>>>
>>>>>>> Thank you,
>>>>>>> Weigang
>>>>>>>
>>>>>>> On Friday, October 11, 2024 at 2:38:27 PM UTC+8 Ruochun Zhang wrote:
>>>>>>>
>>>>>>>> If the device is not the problem and the demo exits quickly after 
>>>>>>>> starting, that's a bit weird. Could you check two things: 1) Provided 
>>>>>>>> that 
>>>>>>>> you can build the entire project, check if this is also the case for 
>>>>>>>> other 
>>>>>>>> demos; 2) Step into the demo (perhaps using VSCode and gdb as the 
>>>>>>>> debugger) 
>>>>>>>> and see where this happens. You probably don't need to go very deep 
>>>>>>>> since 
>>>>>>>> it appears bad_alloc happened quickly after running. But you may need 
>>>>>>>> to 
>>>>>>>> rebuild the project using Debug (not Release) build option before you 
>>>>>>>> do 
>>>>>>>> this.
>>>>>>>>
>>>>>>>> I'd also like to note right now DEME does not work on WSL so please 
>>>>>>>> make sure you are not doing this on WSL. But it looks like this is a 
>>>>>>>> native 
>>>>>>>> Linux machine so perhaps no issue here.
>>>>>>>>
>>>>>>>> Thank you,
>>>>>>>> Ruochun
>>>>>>>>
>>>>>>>> On Friday, October 11, 2024 at 12:52:41 PM UTC+8 [email protected] 
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> I have run the attached script. it runs well. 
>>>>>>>>> [image: 微信图片_20241011125001.jpg]
>>>>>>>>>
>>>>>>>>> Thank you,
>>>>>>>>> Weigang
>>>>>>>>>
>>>>>>>>> On Friday, October 11, 2024 at 11:26:54 AM UTC+8 Ruochun Zhang 
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Then to understand how/if it is related to your device, it's best 
>>>>>>>>>> to test if we can use it to do something else. I'm just giving an 
>>>>>>>>>> example: 
>>>>>>>>>> you can use your nvcc compiler to compile the attached script. If it 
>>>>>>>>>> works 
>>>>>>>>>> then it's probably not your device, and if it gives an error you 
>>>>>>>>>> know where 
>>>>>>>>>> the problem is. And if your device works all right, we have to know 
>>>>>>>>>> where 
>>>>>>>>>> the bad_alloc happened to proceed.
>>>>>>>>>>
>>>>>>>>>> Also, by that, I just meant the installation of CUDA might be the 
>>>>>>>>>> issue.
>>>>>>>>>>
>>>>>>>>>> Thank you,
>>>>>>>>>> Ruochun
>>>>>>>>>>
>>>>>>>>>> On Friday, October 11, 2024 at 11:10:55 AM UTC+8 
>>>>>>>>>> [email protected] wrote:
>>>>>>>>>>
>>>>>>>>>>> I think that i have the GPU devices and GPU driver. If the 
>>>>>>>>>>> reason is that the  GPU devices not accessible by the system, how 
>>>>>>>>>>> can i 
>>>>>>>>>>> solve this problem? Do you have any suggestion? By the way, i would 
>>>>>>>>>>> like to 
>>>>>>>>>>> know that what is the meaning of CUDA runtime installation.
>>>>>>>>>>>
>>>>>>>>>>> Thank you,
>>>>>>>>>>> Weigang
>>>>>>>>>>>
>>>>>>>>>>> On Thursday, October 10, 2024 at 8:40:09 PM UTC+8 Ruochun Zhang 
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> The previous one appears to be a linkage problem with 
>>>>>>>>>>>> filesystem-related libraries. If your compiler supports C++17, 
>>>>>>>>>>>> then I 
>>>>>>>>>>>> suggest you remove everything in your build folder and try 
>>>>>>>>>>>> rebuilding, and 
>>>>>>>>>>>> in the ccmake configuration, manually set the C++ standard to 17. 
>>>>>>>>>>>> If this 
>>>>>>>>>>>> does not help then maybe there is a problem with your compiler 
>>>>>>>>>>>> installation...
>>>>>>>>>>>>
>>>>>>>>>>>> As for the bad_alloc thing, it is usually a failed memory 
>>>>>>>>>>>> allocation attempt. Since this demo is small in scale, it is more 
>>>>>>>>>>>> likely 
>>>>>>>>>>>> due to that you have no GPU devices/GPU devices not accessible by 
>>>>>>>>>>>> the 
>>>>>>>>>>>> system/no proper GPU driver or CUDA runtime installation.
>>>>>>>>>>>>
>>>>>>>>>>>> Thank you,
>>>>>>>>>>>> Ruochun
>>>>>>>>>>>>
>>>>>>>>>>>> On Thursday, October 10, 2024 at 1:33:06 PM UTC+8 
>>>>>>>>>>>> [email protected] wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> when i run the demo, there is also a error as shown below.
>>>>>>>>>>>>> [image: 微信图片_20241010132851.jpg]
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Thursday, October 10, 2024 at 10:53:23 AM UTC+8 Weigang 
>>>>>>>>>>>>> Shen wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Thank you! This problem has been solved. However, there is a 
>>>>>>>>>>>>>> new error as shown below.
>>>>>>>>>>>>>> [image: 微信图片_20241010105032.jpg]
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Thank you,
>>>>>>>>>>>>>> Weigang
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Thursday, October 10, 2024 at 9:46:36 AM UTC+8 Ruochun 
>>>>>>>>>>>>>> Zhang wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> You are probably using an old GCC version, as you'll need a 
>>>>>>>>>>>>>>> C++17-compatible compiler. You may use GCC 8 or newer.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Thank you,
>>>>>>>>>>>>>>> Ruochun
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Wednesday, October 9, 2024 at 10:16:04 AM UTC+8 
>>>>>>>>>>>>>>> [email protected] wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Hi Ruochun,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I am now encountering such a problem. Could you give me a 
>>>>>>>>>>>>>>>> help?
>>>>>>>>>>>>>>>> [image: 微信图片_20241009101157.jpg]
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Thank you,
>>>>>>>>>>>>>>>> Weigang
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>

-- 
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/76b9ef76-ed09-4bdb-aec3-0c2f058e137dn%40googlegroups.com.

Reply via email to