- 
                Notifications
    You must be signed in to change notification settings 
- Fork 2
Home
Welcome to the GenTen wiki!
- Installation instructions *[Instruction on how to run GenTen on Windows] ## Instructions on how to run genten on windows
- GenTen runs natively on windows, but only through the Clang compiler, not MSVC. It builds with the Kokkos serial, but not with openMP backend. It does work with Python. Step 1:
- 
The first step is to download the latest version of Visual Studio through this website: https://visualstudio.microsoft.com/downloads/ . After installing visual studio, it is possible to customize the installation by selecting the appropriate workloads. In that case, the appropriate workload will be "Desktop development with C++" to allow using tools such as Clang, CMake. In addition, there is also the possibility to install individual components from the individual tab. 
- 
Download mkl, which is a library of optimized math routines, through this site: https://www.intel.com/content/www/us/en/developer/tools/oneapi/onemkl-download.html 
- 
set a variable 'MKLROOT' with the path where mkl is installed 'C:\Program Files (x86)\Intel\oneAPI\mkl\latest'. MKLROOT=C:\Program Files (x86)\Intel\oneAPI\mkl\latest
- 
Then add mkl's path to system environment variable can be done by pressing to the windows button and enter "system environment variable" in the search bar. A window will pop up with both environment variable for user and system environment variable. You can add the path in either the environment variable for the user or in for the system; for the user just double-click on the variable name "Path", a list of path will appear and click on the "New" button or double-click on the white space and enter the path where mkl bin folder is located. For the system environment variable, make sure you have admin privilege, and press on the "New" button, name the variable and enter the path to where the mkl bin folder is located. C:\Program Files (x86)\Intel\oneAPI\compiler\2025.1\bin\compiler
Step 2: Cloning GenTen repository
- To clone the repository, open the command prompt and enter; git clone https://github.com/sandialabs/GenTen.git
Step 3: Installing and Setting up Clang on Visual Studio
- To install Clang on visual studio, click on "Tools" and choose "Get Tools and Features". From there, select "individual components" and search for "Clang" in the search bar. In addition, Clang compiler can be installed through the "Desktop development with C++" in the workloads feature as well.
Step 4: Configuring a windows project to use Clang tools
- 
To configure a project on visual studio to use Clang, right-click on CMakeLists.txt in Solution Explorer and choose CMake settings for project. After that, under Configurations, press theAdd Configurationbutton. Choose the desired Clang configuration, and pressSelect. For more informations on how to configure a windows project to use Clang tools, visit the following site: https://learn.microsoft.com/en-us/cpp/build/clang-support-cmake?view=msvc-170
- 
In the CMake command arguments field, you can specify additional arguments such as -DENABLE_PYTHON=ONto enable python.