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
> **NOTE:** Refer `pyproject.toml` and `.flake8` config files for current configurations.
65
+
> **NOTE:** Refer:
66
+
> *`pyproject.toml` and `.flake8` config files for current configurations
67
+
> *`.pre-commit-config.yaml` file for the versions of the tools
70
68
71
69
Run these three tools before each commit.
72
70
@@ -116,13 +114,13 @@ The standard header looks like this:
116
114
```
117
115
---
118
116
> **NOTE:**
119
-
- The `-*- C++ -*-` string on the first line tells Emacs* that
117
+
>- The `-*- C++ -*-` string on the first line tells Emacs* that
120
118
it is a C++ file. The string is only needed for `*.h` headers and
121
119
should be omitted for `*.cpp` files. Without the string, Emacs* assumes the
122
120
file is a C header.
123
-
- The copyright year must be updated every calendar year.
124
-
- Each comment line should be a max of 80 chars.
125
-
- A Doxygen `\file` tag describing the contents of the file must be provided.
121
+
>- The copyright year must be updated every calendar year.
122
+
>- Each comment line should be a max of 80 chars.
123
+
>- A Doxygen `\file` tag describing the contents of the file must be provided.
126
124
Note that the `\file` tag is inside a Doxygen comment block. It is
127
125
defined by the `///` comment marker instead of the `//` comment marker used in the
128
126
rest of the header.
@@ -166,7 +164,7 @@ To install, run:
166
164
pip install bandit
167
165
```
168
166
169
-
Revision: `1.7.0`
167
+
Bandit revision used: `1.7.0`
170
168
171
169
Before each commit, run:
172
170
```bash
@@ -211,8 +209,8 @@ To check the code coverage for your code, follow these steps:
211
209
`setup.py`.
212
210
213
211
The coverage results for the C and Python* sources are printed to the
214
-
terminal during the build (C API) and pytest execution (Python*).
215
-
The detailed coverage reports for the C API are saved to the
212
+
terminal during the build (`libsyclinterface`) and pytest execution (Python*).
213
+
The detailed coverage reports for the `libsyclinterface` library are saved to the
216
214
`dpctl-c-api-coverage` directory. The Python* coverage reports are saved to
217
215
the `htmlcov` directory.
218
216
@@ -234,7 +232,7 @@ To check the code coverage for your code, follow these steps:
234
232
235
233
## Error Reporting and Logging
236
234
237
-
The SyclInterface library responds to the `DPCTL_VERBOSITY` environment variable that controls the severity level of errors printed to the console.
235
+
The `libsyclinterface` library responds to the `DPCTL_VERBOSITY` environment variable that controls the severity level of errors printed to the console.
238
236
Specify one of the following severity levels (in increasing order of severity): `warning` and `error` by running:
239
237
240
238
```bash
@@ -260,7 +258,7 @@ conda install glog
260
258
python scripts/build_locally.py --oneapi --glog
261
259
```
262
260
263
-
3. Use `dpctl._diagnostics.syclinterface_diagnostics(verbosity="warning", log_dir=None)` context manager to switch library diagnostics on for a block of a Python* code.
261
+
3. Use the `dpctl._diagnostics.syclinterface_diagnostics(verbosity="warning", log_dir=None)` context manager to switch library diagnostics on for a block of a Python* code.
264
262
Use `DPCTLService_InitLogger` and `DPCTLService_ShutdownLogger` library C functions during library development to initialize Google's logging library and de-initialize accordingly:
0 commit comments