# Installing ROOT fully on windows

**URL:** <https://root-forum.cern.ch/t/installing-root-fully-on-windows/62541>\
**Category:** Newbie\
**Tags:** python\
**Created:** [December 25, 2024, 11:30pm UTC](https://root-forum.cern.ch/t/installing-root-fully-on-windows/62541 "2024-12-25T23:30:02Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aditya\_Sharma](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/aditya_sharma/32/36805_2.png) [@Aditya\_Sharma](https://root-forum.cern.ch/u/Aditya_Sharma)\
**Post date:** [December 25, 2024, 11:30pm UTC](https://root-forum.cern.ch/t/installing-root-fully-on-windows/62541/1 "2024-12-25T23:30:03Z")

</div>

I have downloaded ROOT 6.32.06 on my device but it doesnot have ‘pyroot’ and ‘cuda’ capabilities maybe because i downloaded it form the ‘.exe’ installer on the website can someone guide me what to do in order to install the full version of root on windows manually because I think installer will not include the features that I want.  
_ROOT Version:_ 6.32.06  
_Platform:_ W11 23H2  
_Compiler:_ Visual Studio??

* * *

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [December 26, 2024, 7:54am UTC](https://root-forum.cern.ch/t/installing-root-fully-on-windows/62541/2 "2024-12-26T07:54:01Z")

</div>

Hi Aditya,

Over here it’s holiday season: expect perhaps some delays in the answers.  
Let me add in the loop @bellenot .  
In the meanwhile, I can propose to have a look to 6.34.02: [Release 63402 - ROOT](https://root.cern/releases/release-63402/)

Let us know how this goes.

Cheers,  
D

---

<div class="post-metadata">

**Author:** ![Aditya\_Sharma](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/aditya_sharma/32/36805_2.png) [@Aditya\_Sharma](https://root-forum.cern.ch/u/Aditya_Sharma)\
**Post date:** [December 30, 2024, 4:20pm UTC](https://root-forum.cern.ch/t/installing-root-fully-on-windows/62541/3 "2024-12-30T16:20:36Z")

</div>

Hi Danilo,

Thank you for the update! I completely understand that it’s the holiday season and that there may be some delays in responses. I’ll wait for you to come back with more details and for @bellenot to be added to the loop.

I would also like to ask if there is a way to install/build root on windows from scratch without requiring the MVSC compiler that comes with visual studio because that compiler is highly unoptimized and folders created by visual studio take enormous amounts of space.  
A rough comparison of performance can be checked in [ROOT Performance in Linux vs Windows - ROOT - ROOT Forum](https://root-forum.cern.ch/t/root-performance-in-linux-vs-windows/21195/4)

Looking forward to hearing back from you.

Cheers,  
Aditya

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [January 6, 2025, 8:33am UTC](https://root-forum.cern.ch/t/installing-root-fully-on-windows/62541/4 "2025-01-06T08:33:09Z")

</div>

Hi,

First, sorry for the delay. Then, PyROOT should be available with the binaries, but not CUDA (we never tried to enable CUDA on Windows). And Visual Studio is required. Note that you can also use WSL as an alternative…

Cheers, Bertrand.

---

<div class="post-metadata">

**Author:** ![Aditya\_Sharma](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/aditya_sharma/32/36805_2.png) [@Aditya\_Sharma](https://root-forum.cern.ch/u/Aditya_Sharma)\
**Post date:** [January 18, 2025, 5:40am UTC](https://root-forum.cern.ch/t/installing-root-fully-on-windows/62541/5 "2025-01-18T05:40:36Z")

</div>

Hi Bellenot,  
Sure, I will try installing CUDA on my WSL, in the meantime can you tell me detailed steps to install root in WSL with CUDA. I tried to find detaild instructions but I was unable to do so. I am planning to use Ubuntu 24.04.1 LTS available on Microsoft Store (which I guess is WSL2).  
Also, I was not able to find a proper list of compatible CUDA versions (like TensorFlow supports version 12.3 and PyTorch supports version 12.4), can I get more info on that so that I download other things in WSL accordingly.  
Cheers,  
Aditya

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [January 20, 2025, 8:03am UTC](https://root-forum.cern.ch/t/installing-root-fully-on-windows/62541/6 "2025-01-20T08:03:42Z")

</div>

I have no experience with CUDA either on Windows or Ubuntu. Did you try to [search the forum](https://root-forum.cern.ch/search?q=CUDA%20order%3Alatest)? Or maybe @jonas or @moneta can help

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [January 20, 2025, 9:49am UTC](https://root-forum.cern.ch/t/installing-root-fully-on-windows/62541/7 "2025-01-20T09:49:41Z")

</div>

CUDA related:

> <https://github.com/root-project/root/issues/16975>
>
> \### Explain what you would like to see improved and how.
> 
> The main obstacle to… compiling root with nvc++ is the extraction of the system headers by cling. With gcc, this is done via \`g++ -xc++ -E -v /dev/null\` and then a sed script to extract the paths in interpreter/cling/lib/Interpreter/CMakeLists.cxx. This doesn't work with nvc++, but a new flag in hpc sdk version 24.11 was added explicitly for this: \`-drygccinc\`. I can offer a patch for this file, but there are a LOT of different code paths through it, and I'm not certain of what they all do, so I probably haven't covered all use cases:
> 
> \`\`\`
> diff --git a/interpreter/cling/lib/Interpreter/CMakeLists.txt b/interpreter/cling/lib/Interpreter/CMakeLists.txt
> index e397da97f6..7639cbc58e 100644
> \--- a/interpreter/cling/lib/Interpreter/CMakeLists.txt
> +++ b/interpreter/cling/lib/Interpreter/CMakeLists.txt
> @@ -242,24 +242,34 @@ if (UNIX)
> endif()
>  
> if(NOT CLING\_CXX\_HEADERS)
> \- if (CLING\_CXX\_PATH)
> \- execute\_process(COMMAND ${CLING\_CXX\_PATH} ${CLING\_CXX\_PATH\_ARGS} -xc++ -E -v /dev/null
> +    
> + if ("${CMAKE\_CXX\_COMPILER\_ID}" MATCHES "NVHPC")
> + execute\_process(COMMAND ${CLING\_CXX\_RLTV} -drygccinc
> OUTPUT\_QUIET ERROR\_VARIABLE CLING\_CXX\_HEADERS)
> \- set(CLING\_CXX\_PATH "${CLING\_CXX\_PATH} ${CLING\_CXX\_PATH\_ARGS}")
> + execute\_process(
> + COMMAND echo ${CLING\_CXX\_HEADERS}
> + COMMAND sed s/:/\\\\\\n/g
> + OUTPUT\_VARIABLE CLING\_CXX\_HEADERS)
> else()
> \- # convert CMAKE\_CXX\_FLAGS to a list for execute\_process
> \- string(REPLACE "-fdiagnostics-color=always" "" cling\_tmp\_arg\_list ${CMAKE\_CXX\_FLAGS})
> \- string(REPLACE "-fcolor-diagnosics" "" cling\_tmp\_arg\_list ${cling\_tmp\_arg\_list})
> \- string(REPLACE " " ";" cling\_tmp\_arg\_list ${cling\_tmp\_arg\_list})
> \- execute\_process(COMMAND ${CMAKE\_CXX\_COMPILER} ${CMAKE\_CXX\_COMPILER\_ARG1} ${cling\_tmp\_arg\_list} -xc++ -E -v /dev/null
> \- OUTPUT\_QUIET ERROR\_VARIABLE CLING\_CXX\_HEADERS)
> + if (CLING\_CXX\_PATH)
> + execute\_process(COMMAND ${CLING\_CXX\_PATH} ${CLING\_CXX\_PATH\_ARGS} -xc++ -E -v /dev/null
> + OUTPUT\_QUIET ERROR\_VARIABLE CLING\_CXX\_HEADERS)
> + set(CLING\_CXX\_PATH "${CLING\_CXX\_PATH} ${CLING\_CXX\_PATH\_ARGS}")
> + else()
> + # convert CMAKE\_CXX\_FLAGS to a list for execute\_process
> + string(REPLACE "-fdiagnostics-color=always" "" cling\_tmp\_arg\_list ${CMAKE\_CXX\_FLAGS})
> + string(REPLACE "-fcolor-diagnosics" "" cling\_tmp\_arg\_list ${cling\_tmp\_arg\_list})
> + string(REPLACE " " ";" cling\_tmp\_arg\_list ${cling\_tmp\_arg\_list})
> + execute\_process(COMMAND ${CMAKE\_CXX\_COMPILER} ${CMAKE\_CXX\_COMPILER\_ARG1} ${cling\_tmp\_arg\_list} -xc++ -E -v /dev/null
> + OUTPUT\_QUIET ERROR\_VARIABLE CLING\_CXX\_HEADERS)
> + endif()
> +
> + execute\_process(
> + COMMAND echo ${CLING\_CXX\_HEADERS}
> + COMMAND sed -n -e /^.include/,\\$\\{ -e /^\\\\\\ \\\\\\/.\*++/p -e \\}
> + OUTPUT\_VARIABLE CLING\_CXX\_HEADERS)
> endif()
>  
> \- execute\_process(
> \- COMMAND echo ${CLING\_CXX\_HEADERS}
> \- COMMAND sed -n -e /^.include/,\\$\\{ -e /^\\\\\\ \\\\\\/.\*++/p -e \\}
> \- OUTPUT\_VARIABLE CLING\_CXX\_HEADERS)
> \-
> stripNewLine("${CLING\_CXX\_HEADERS}" CLING\_CXX\_HEADERS)
> endif()
> \`\`\`
> 
> Also, we can add NVHPC to the list of supported compilers in cmake/modules/CheckCompiler.cmake:
> \`\`\`
> diff --git a/cmake/modules/CheckCompiler.cmake b/cmake/modules/CheckCompiler.cmake
> index 4efd0b5946..64ed9761ff 100644
> \--- a/cmake/modules/CheckCompiler.cmake
> +++ b/cmake/modules/CheckCompiler.cmake
> @@ -8,7 +8,7 @@
> # CheckCompiler.cmake
> #---------------------------------------------------------------------------------------------------
>  
> \-if(NOT CMAKE\_CXX\_COMPILER\_ID MATCHES "(Apple|)Clang|GNU|Intel|MSVC")
> +if(NOT CMAKE\_CXX\_COMPILER\_ID MATCHES "(Apple|)Clang|GNU|Intel|MSVC|NVHPC")
> message(WARNING "Unsupported compiler: ${CMAKE\_CXX\_COMPILER\_ID}.")
> endif()
> \`\`\`
> 
> 
> \### ROOT version
> 
> tried with 6.33.01
> 
> \### Installation method
> 
> build from source
> 
> \### Operating system
> 
> linux alma9
> 
> \### Additional context
> 
> requires at least v24.11 of NVIDIA nvc++

> <https://github.com/root-project/root/pull/17000>
>
> \# This Pull request:
> 
> Adds support for NVIDIA's nvc++ compiler
> 
> Fixes https:…//github.com/root-project/root/issues/16975
> 
> \## Changes or fixes:
> \- check if at least ver 24.11 of nvc++ compiler is being used
> \- when building cling, nvc++ uses a different syntax than gcc to extract the system include header locations. Instead of -xc++ -E -v, and then a bunch of sed parsing, it uses the -drygccinc flag to produce a colon separated list of paths.
> 
> This allows clean compilation on ARM (NVIDIA Grace) CPUs.

---

<div class="post-metadata">

**Author:** ![jonas](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jonas/32/24756_2.png) [@jonas](https://root-forum.cern.ch/u/jonas)\
**Post date:** [January 20, 2025, 10:10am UTC](https://root-forum.cern.ch/t/installing-root-fully-on-windows/62541/8 "2025-01-20T10:10:21Z")

</div>

@ferhue, the GitHub items you linked are about compiling all of ROOT with the Nvidia compiler, not the CUDA features in particular.

@Aditya_Sharma, are you sure you need the “cuda” features? For now, the only CUDA features in ROOT are the TMVA and RooFit CUDA backends, and most of our ROOT users don’t even use RooFit or TMVA.

Nobody here has experience with ROOT+Cuda on WSL, so getting help will be hard. Let’s first try to figure out if this is really necessary. If you just want to enable “cuda” for the sake of having a “full build of ROOT”, I can already tell you it’s not worth it.

---

<div class="post-metadata">

**Author:** ![Aditya\_Sharma](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/aditya_sharma/32/36805_2.png) [@Aditya\_Sharma](https://root-forum.cern.ch/u/Aditya_Sharma)\
**Post date:** [January 20, 2025, 11:01am UTC](https://root-forum.cern.ch/t/installing-root-fully-on-windows/62541/9 "2025-01-20T11:01:53Z")

</div>

Hi Jonas,

I don’t remember all the features I used earlier when I first wrote a code in ROOT about a year ago, I remember that at the very end I had to use ROO Stats to analyze data from 10 files combined, this took a lot of time on the window’s native version of ROOT, and this was frustrating for me as many times the code didn’t work. So, I wanted CUDA so that I can analyze files much quicker.

Also, I now wanted to try to write a Deep Learning code for these files, so I was hoping to have CUDA C++ support.

---

<div class="post-metadata">

**Author:** ![jonas](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jonas/32/24756_2.png) [@jonas](https://root-forum.cern.ch/u/jonas)\
**Post date:** [January 20, 2025, 1:35pm UTC](https://root-forum.cern.ch/t/installing-root-fully-on-windows/62541/10 "2025-01-20T13:35:27Z")

</div>

What kind of fits are you doing in your RooStats analysis? The CUDA backend can give a significant speedup for unbinned fits where the likelihood function sums over millions of events or more. But it doesn’t give any advantage for binned fits, because often one doesn’t have many bins anyway and potential for parallelization is low. For the big unbinned fits it’s worth it though!

And what do you mean with “deep learning code”? Nowadays, one usually trains the deep neural networks outside ROOT with pytorch or tensorflow. Or you plan to use something else? In that case, this has nothing to do with the CUDA features of ROOT.

---

<div class="post-metadata">

**Author:** ![Aditya\_Sharma](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/aditya_sharma/32/36805_2.png) [@Aditya\_Sharma](https://root-forum.cern.ch/u/Aditya_Sharma)\
**Post date:** [January 20, 2025, 3:05pm UTC](https://root-forum.cern.ch/t/installing-root-fully-on-windows/62541/11 "2025-01-20T15:05:52Z")

</div>

As far as I can tell by looking at the code, the code I wrote was for ‘unbinned’ fits, where I did not explicitly group data, I used RooDataSet to perform the fit.

For Deep Learning part, I was mostly planning to write code in PyRoot using PyTorch and if I have some free time then trying to write a DL code from scratch in CUDA C++ for “.root” files.
