Rebeca,

This error suggests that you either have a very old GPU (which is unlikely, as 
atomicAdd for double is available on devices with compute capability 6 and 
newer) or not really using CUDA 12.9 or 13.0 (but rather still 12.3).

You seem to have multiple versions of CUDA installed on your machine. How do 
you specify which one to use when you configure Chrono with CMake?
Could you please post the CMake messages during Chrono configuration that 
indicate which version of CUDA was found and will be used? Something like the 
following:
Searching for CUDA
  CUDA compiler:           C:/Program Files/NVIDIA GPU Computing 
Toolkit/CUDA/v12.8/bin/nvcc.exe
  CUDA toolkit version:    12.8.61
  CUDA toolkit root dir:   C:/Program Files/NVIDIA GPU Computing 
Toolkit/CUDA/v12.8
  CUDA archs (from cache): all-major
  CUDA found and enabled.
Searching for Thrust
  Thrust version:     2.7.0
  Thrust include dir: C:/Program Files/NVIDIA GPU Computing 
Toolkit/CUDA/v12.8/include

--Radu

From: [email protected] <[email protected]> On Behalf 
Of Rebeca Guimarães
Sent: Thursday, September 25, 2025 11:39 PM
To: ProjectChrono <[email protected]>
Subject: Re: [chrono] FSI won't work

Also, I just checked my prompt again and saw I'm getting this error when 
building Chrono. It happens in many lines of BceManager.

D:\Rebeca\Desktop\Terramechanics\chrono-main-NASA\chrono-main\src\chrono_fsi\sph\physics\BceManager.cu(373):
 error : no
 instance of overloaded function "atomicAdd" matches the argument list 
[D:\Rebeca\Desktop\Terramechanics\chrono-main-NA
SA\chrono-main\build\src\chrono_fsi\sph\Chrono_fsisph.vcxproj]
              argument types are: (chrono::fsi::sph::Real *, 
chrono::fsi::sph::Real)
            atomicAdd(&body_forces[body_ID].x, sharedForces[0].x);
            ^
Rebeca
Em quinta-feira, 25 de setembro de 2025 às 18:29:31 UTC-3, Rebeca Guimarães 
escreveu:
Hello, everyone!

Thank you for the suggestion, Dan! I will definetely try out PyChrono. I need 
to present a proof of concept to my undergrad thesis advisor in the next weeks 
so I had decided to go with C++ since I struggled a bit with Anaconda. But I'll 
try again :)

Radu, I've been using the latest version, I downloaded it from the git. I'm 
able to compile and build Chrono and run Vehicle module projects.

The FSI single wheel demo that comes in the pre compiled pack works just fine 
in my computer. But whenever I try to compile a new project, even the demo cpp 
itself, it will run and then simply close the prompt before the visual 
interface ever starts.

This has been happening with CUDA 12.3, CUDA 12.9, CUDA 13.0.

What baffles me is the fact I'm able to run the pre compiled exe, so it doesn't 
seem to be a hardware incompatibility. I really have no idea what's going on :(
Have any of you ever faced a similar problem, where the prompt closes right at 
the FSI Initialize() line?

Rebeca


Em terça-feira, 23 de setembro de 2025 às 04:46:32 UTC-3, Radu Serban escreveu:
Hi Rebeca,

Could you please clarify what Chrono version you are using?  Older releases 
will obviously not work with new CUDA releases.

The current Chrono code in the main branch of the repository should work fine 
with any new CUDA 12.* versions (e.g. 12.8 or 12.9), as well as CUDA 13.0 
(although I only tested the latter on Linux).  Any of these CUDA versions will 
work fine with the latest VS versions.

Please make sure that:

  *   you use the latest Chrono code from the development branch (‘main’).
  *   Update your copy of Visual Studio to the latest version.
  *   You can test with CUDA 13.0.1.  If that doesn’t work, please let me know. 
 But if you can install a different version of CUDA, I suggest you use 12.9 
which is what I currently use on my Windows machine.

--Radu


From: [email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>> On Behalf Of 
Rebeca Guimarães
Sent: Thursday, September 18, 2025 10:45 PM
To: ProjectChrono 
<[email protected]<mailto:[email protected]>>
Subject: [chrono] FSI won't work

Good afternoon!

I've donwloaded and compiled Chrono and been able to run many projects. Since 
I'm running terramechanics analysis, I am now trying to run FSI SPH.

I was able to code, configure and geenrate, but when I run the exe, it will 
halt at the Initialize and close the cmd.

I think I've narrowed the issue down to CUDA. I'm using version 13.0.1. I read 
at the website I need to use 12.3, but my MSVC says it expects version 12.4 or 
newer.

Can someone help me how to downgrade my MSVC so it will accept 12.3?

Thanks!


D:\Program Files\Microsoft Visual
Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include\yvals_core.h(902):
error : static assertion failed with "error STL1002: Unexpected compiler
version, expected CUDA 12.4 or newer."
--
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 visit 
https://groups.google.com/d/msgid/projectchrono/b3ff10c6-ac6c-42f7-bcb5-af0b30085b6fn%40googlegroups.com<https://urldefense.com/v3/__https:/groups.google.com/d/msgid/projectchrono/b3ff10c6-ac6c-42f7-bcb5-af0b30085b6fn*40googlegroups.com?utm_medium=email&utm_source=footer__;JQ!!Mak6IKo!JjYeUOI4xLXD7t_mTxzl_aANBnQnLjdYX9a-waRJUB_I6ou_X9kc_E7vaOf0TUf33x5i9MicivFtLuWIyXw$>.
--
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 visit 
https://groups.google.com/d/msgid/projectchrono/3bf93f42-2f59-43b3-b63e-ee793140f586n%40googlegroups.com<https://urldefense.com/v3/__https:/groups.google.com/d/msgid/projectchrono/3bf93f42-2f59-43b3-b63e-ee793140f586n*40googlegroups.com?utm_medium=email&utm_source=footer__;JQ!!Mak6IKo!L4gWcmg72Acl0IlvgPg4dgoIC18fx6XtVLh4ZgdAli42SLa73gZ9fXDGG-71L7CYGHT8mAsOUGETbkufdlk$>.

-- 
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 visit 
https://groups.google.com/d/msgid/projectchrono/CH3PPF46CDC2185D094587460AD21EF68E4A71EA%40CH3PPF46CDC2185.namprd06.prod.outlook.com.

Reply via email to