You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
conda install openmp # on MacOS, please run "brew install libomp" instead
39
42
```
40
43
41
-
3. Build the Quartz runtime library (optional with CLion, see [below](INSTALL.md#clion-integration-optional)). This step differs a little bit between Windows and other OS.
44
+
3. Build the Quartz runtime library (optional with CLion, see [below](INSTALL.md#clion-integration-optional)). This step
45
+
differs a little bit between Windows and other OS.
42
46
43
47
#### Unix/Linux/MacOS:
48
+
44
49
```shell
45
50
mkdir build
46
51
cd build
47
52
cmake .. # see notes below
48
53
make install
49
54
```
50
55
51
-
Note that line 3 in the example will have the runtime library and include files installed into the default path `/usr/local/`. To modify the install path, you can set the path explicitly in line 3, for example:
56
+
Note that line 3 in the example will have the runtime library and include files installed into the default
57
+
path `/usr/local/`. To modify the install path, you can set the path explicitly in line 3, for example:
52
58
53
59
```shell
54
60
cmake -D CMAKE_INSTALL_PREFIX:PATH=~/opt/ ..
55
61
```
56
62
57
63
#### Windows:
64
+
58
65
```batch
59
66
mkdir build
60
67
cd build
61
68
cmake ..
62
69
```
70
+
63
71
Use Visual Studio to open `quartz/build/Quartz.sln`, click Build -> Build Solution (F7).
64
72
65
73
4. Run Quartz's optimization to see if you installed successfully (optional).
66
74
67
75
#### Unix/Linux/MacOS:
76
+
68
77
```shell
69
78
cd .. # should be at the root directory of quartz/ now
70
79
./build/test_optimize
71
80
```
72
81
73
82
#### Windows:
83
+
74
84
```batch
75
85
cd ..
76
86
:: should be at the root directory of quartz/ now
77
87
"build/Debug/test_optimize.exe"
78
88
```
79
89
80
90
You should see an output similar to the following on either OS:
91
+
81
92
```
82
93
number of xfers: 130
83
94
[barenco_tof_3] Best cost: 58.000000 candidate number: 22 after 0.170 seconds.
@@ -93,11 +104,14 @@ cd ../python
93
104
python setup.py build_ext --inplace install
94
105
```
95
106
96
-
Note that if you changed the install directory in step 3, you have to modified `include_dirs` and `library_dirs` in `setup.py`.
107
+
Note that if you changed the install directory in step 3, you have to modified `include_dirs` and `library_dirs`
108
+
in `setup.py`.
97
109
98
-
6. To use `quartz` library in python, you should make sure the directory where you install `quartz` runtime library, that is `libquartz_runtime.so`, is in Python's searching directories.
110
+
6. To use `quartz` library in python, you should make sure the directory where you install `quartz` runtime library,
111
+
that is `libquartz_runtime.so`, is in Python's searching directories.
-`test_optimize | Debug-Visual Studio` -> Edit Configurations... -> Working Directory -> fill in `(path\to\quartz)`
126
144
- Click "Run 'test_optimize'" (Shift + F10)
127
145
128
146
## Visual Studio Integration (Optional) (only for Windows)
147
+
129
148
### Additional Prerequisites
130
-
* Visual Studio: Workloads -> Python Development. You can use Visual Studio Installer to modify an existing Visual Studio installation if the Python Development component was not installed before.
149
+
150
+
* Visual Studio: Workloads -> Python Development. You can use Visual Studio Installer to modify an existing Visual
151
+
Studio installation if the Python Development component was not installed before.
131
152
* First 3 steps in [Build Quartz Runtime](INSTALL.md#build-quartz-runtime)
132
153
133
154
### Configuration to Run
155
+
134
156
- View -> Solution Explorer
135
157
- In Solution Explorer, right click `test_optimize`, click "Set as Startup Project"
136
-
- In Solution Explorer, right click `test_optimize`, click "Properties"; in the pop-up window, in "Configuration Properties", click Debugging -> Working Directory -> dropdown menu -> <Browse...> -> select `(path\to\quartz)`
158
+
- In Solution Explorer, right click `test_optimize`, click "Properties"; in the pop-up window, in "Configuration
159
+
Properties", click Debugging -> Working Directory -> dropdown menu -> <Browse...> -> select `(path\to\quartz)`
137
160
- Click "Local Windows Debugger/Start Debugging (F5)" or "Start Without Debugging (Ctrl + F5)"
138
161
139
162
### Troubleshooting
140
-
- If there is a pop-up window saying missing "python311.dll" (name varies with Python version) or "zlib.dll", go to `(path\to\conda)\envs\quartz`, copy the required .dll files to `(path\to\quartz)\build\Debug`.
141
-
- For any program (test/benchmark) requiring pybind11, please make sure that the working directory of that program does **not** contain "python311.dll" (name varies with Python version). If you encounter "Debug Error! ... abort() has been called" with Exception 0xe06d7363, this might be the cause.
163
+
164
+
- If there is a pop-up window saying missing "python311.dll" (name varies with Python version) or "zlib.dll", go
165
+
to `(path\to\conda)\envs\quartz`, copy the required .dll files to `(path\to\quartz)\build\Debug`.
166
+
- For any program (test/benchmark) requiring pybind11, please make sure that the working directory of that program
167
+
does **not** contain "python311.dll" (name varies with Python version). If you encounter "Debug Error! ... abort()
168
+
has been called" with Exception 0xe06d7363, this might be the cause.
0 commit comments