Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » U++ community news and announcements » Experimental CUDA support
Re: Experimental CUDA support [message #61460 is a reply to message #61459] Sun, 16 February 2025 09:54 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14256
Registered: November 2005
Ultimate Member
zsolt wrote on Sat, 15 February 2025 23:08
I'm absolutely not an expert, but AFAIK nvidia-cuda-toolkit on Ubuntu can be used in Clang or G++ projects.


In Linux yes. In Win32, no way - you need to use Visual C++. At least that is Nvidia's position. https://stackoverflow.com/questions/68726422/is-it-possible- to-integrate-nvcc-with-gcc-g-in-windows

Now nvcc seems to work by separating cuda code and host code, then compiles cuda code and creates a new c++ file which combines host code and compiled cuda code (as arrays like

unsigned long long fatbinData[]= {0x00100001ba55ed50ull ....
)

Then this file is compiled by host compiler. There are explicit checks in CUDA headers for MSC++ compiler (#ifdef MSC_VER). There might also be a problem with CUDA runtime library, but I doubt that...

I believe that if I take clang-cl and give that to nvcc, with some additional trucks like -D MSC_VER it should work. Do not have time right nor energy now to test right now...
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SSH package updated.
Next Topic: 2024.1a (rc)
Goto Forum:
  


Current Time: Wed Apr 30 06:59:40 CEST 2025

Total time taken to generate the page: 0.04403 seconds