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
adding the desired compile-time options with a `-D` flag (see [Compile-time options](#compile-time-options)).
114
+
115
+
To specify the desired build configuration, pass either `--config Debug` or `--config Release` to the build step and install steps. For instance, to build Intel HEXL in Release mode, call
116
+
```bash
117
+
cmake --build build --config Release
118
+
```
119
+
This will build the Intel HEXL library in the `build/hexl/lib/` or `build/hexl/Release/lib` directory.
120
+
121
+
To install Intel HEXL to the installation directory, run
before proceeding with the build and installation directions above.
102
130
103
131
## Testing Intel HEXL
104
132
To run a set of unit tests via Googletest, configure and build Intel HEXL with `-DHEXL_TESTING=ON` (see [Compile-time options](#compile-time-options)).
@@ -119,7 +147,7 @@ The benchmark executable itself is located at `build/benchmark/bench_hexl`
119
147
The `example` folder has an example of using Intel HEXL in a third-party project.
120
148
121
149
## Debugging
122
-
For optimal performance, Intel HEXL does not perform input validation. In many cases the time required for the validation would be longer than the execution of the function itself. To debug Intel HEXL, configure and build Intel HEXL with `-DCMAKE_BUILD_TYPE=Debug` (see [Compile-time options](#compile-time-options)). This will generate a debug version of the library, e.g. `libhexl.a`, that can be used to debug the execution.
150
+
For optimal performance, Intel HEXL does not perform input validation. In many cases the time required for the validation would be longer than the execution of the function itself. To debug Intel HEXL, configure and build Intel HEXL with `-DCMAKE_BUILD_TYPE=Debug` (see [Compile-time options](#compile-time-options)). This will generate a debug version of the library, e.g. `libhexl_debug.a`, that can be used to debug the execution. In Debug mode, Intel HEXL will also link against [Address Sanitizer](https://github.com/google/sanitizers/wiki/AddressSanitizer).
123
151
124
152
**Note**, enabling `CMAKE_BUILD_TYPE=Debug` will result in a significant runtime overhead.
0 commit comments