-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathHowToBuild.txt
36 lines (24 loc) · 1.22 KB
/
HowToBuild.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
I. Build with Cmake:
(0). Install Visual Studio
The VS2019 will work. VS2015/VS2017 should also work.
(1). Download submodules.
```bash
git submodule update --init --recursive
```
1. Build QuSim WITHOUT CUDA
(1). Create & goto a new folder, e.g. <QuSim>/build
(2). Invoke cmake, e.g. `cmake -S ../applications` (`cmake -S ..\applications` on Windows)
(3). Open QuSim.sln
2. Build QuSim WITH CUDA
(1). Install CUDA
If you have much experience of CUDA and Visual Studio. You can modify the cmake to support other Visual Studio and CUDA version.
Your NVDIA GPU & NVDIA DRIVER version & CUDA version & Visual studio version should be compatible with each other.
The following versions has been tested:
3060Ti &NVDIA DRIVER(27.21.14.6172 In Device Manager or 466.?) & CUDA 11.0 & VS2019(Version 16.9.5)
Normally, newer GPU CARD require newer driver version require newer cuda version require newer visual studio version.
(2). Create & goto a new folder, e.g. <QuSim>/build
(3). Invoke cmake, e.g. `cmake -S ../applications -DUSE_CUDA=ON`
(4). Open QuSim.sln
3. Build QuSim With OpenMP
By default the Eigen matrix library is single-threading. Some module of Eigen support OpenMP.
To enable OpenMP, you need to add option `-DUSE_OPENMP=ON`