Installing ROOT with CUDA

Dear Experts, on the page building from source on the official ROOT’s installation page, the following steps are recommended.

rem The `latest-stable` branch gets updated automatically on each release.
rem You may update your local copy by issuing a `git pull` command from within `root_src`.
C:\Users\username>git clone --branch latest-stable --depth=1 https://github.com/root-project/root.git root_src
C:\Users\username>mkdir root_build root_install && cd root_build
C:\Users\username>cmake -G"Visual Studio 16 2019" -A Win32 -Thost=x64 -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_PREFIX=../root_install ../root_src
C:\Users\username>cmake --build . --config Release --target install
C:\Users\username>..\root_install\bin\thisroot.bat

How do I build it with CUDA support? Because in the Debug, it oututted that CUDA is not found, but nvcc and nvidia-smi works perfectly fine on my PC.

Is there any fix for this?

Thanks in advance

Hi,

The doc is here Building ROOT from source - ROOT . Adding @bellenot in the loop.

Cheers,
D

Note that ROOT with CUDA has vever been tested on Windows. It might not work…

1 Like

I see, I guess i have to switch to WSL. Thanks Evenryone! :grinning:

1 Like

Well, if you want to give it a try, then we would know if it works or what fails…

Sure @bellenot , I have tried installing it in windows and i got the following error:


"D:\Applications\root\root_build\install.vcxproj" (default target) (1) ->
"D:\Applications\root\root_build\ALL_BUILD.vcxproj" (default target) (3) ->
"D:\Applications\root\root_build\graf3d\eve\G__Eve.vcxproj" (default target) (371) ->
"D:\Applications\root\root_build\gui\ged\Ged.vcxproj" (default target) (374) ->
"D:\Applications\root\root_build\gui\ged\G__Ged.vcxproj" (default target) (375) ->
"D:\Applications\root\root_build\tree\tree\Tree.vcxproj" (default target) (376) ->
"D:\Applications\root\root_build\tree\tree\G__Tree.vcxproj" (default target) (377) ->
"D:\Applications\root\root_build\net\net\Net.vcxproj" (default target) (378) ->
(ClCompile target) ->
  D:\Applications\root\root_src\net\net\src\TS3HTTPRequest.cxx(164,7): error C3861: 'gmtime_r': identifier not found [D:\Applications\root\root_build\net\net\Net.vcxproj]

    496 Warning(s)
    1 Error(s)

Time Elapsed 00:32:28.08

I’m no expert, :sweat_smile: anyway, i was able to install it in WSL

Thanks
Anantha

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.