Skip to content

Commit 3eee7d1

Browse files
Added linetrace=true Cython directive to all .pyx files
This is safe to do per https://cython.readthedocs.io/en/latest/src/tutorial/profiling_tutorial.html#enabling-line-tracing Its use allows improved coverage testing of Cython modules when Cython sources are compiled with CYTHON_TRACE/CYTHON_TRACE_NOGIL preprocessor variables defined.
1 parent aadb0ca commit 3eee7d1

File tree

10 files changed

+10
-0
lines changed

10 files changed

+10
-0
lines changed

dpctl/_sycl_context.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
# distutils: language = c++
1818
# cython: language_level=3
19+
# cython: linetrace=true
1920

2021
""" Implements SyclContext Cython extension type.
2122
"""

dpctl/_sycl_device.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
# distutils: language = c++
1818
# cython: language_level=3
19+
# cython: linetrace=true
1920

2021
""" Implements SyclDevice Cython extension type.
2122
"""

dpctl/_sycl_device_factory.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
# distutils: language = c++
1818
# cython: language_level=3
19+
# cython: linetrace=true
1920

2021
""" This module implements several device creation helper functions:
2122

dpctl/_sycl_event.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
# distutils: language = c++
1818
# cython: language_level=3
19+
# cython: linetrace=true
1920

2021
""" Implements SyclEvent Cython extension type.
2122
"""

dpctl/_sycl_platform.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#
1717
# distutils: language = c++
1818
# cython: language_level=3
19+
# cython: linetrace=true
1920

2021
""" Implements SyclPlatform Cython extension type.
2122
"""

dpctl/_sycl_queue.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
# distutils: language = c++
1818
# cython: language_level=3
19+
# cython: linetrace=true
1920

2021
""" Implements SyclQueue Cython extension type.
2122
"""

dpctl/_sycl_queue_manager.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#
1717
# distutils: language = c++
1818
# cython: language_level=3
19+
# cython: linetrace=true
1920

2021
from __future__ import print_function
2122

dpctl/memory/_memory.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
# distutils: language = c++
1818
# cython: language_level=3
19+
# cython: linetrace=true
1920

2021
"""This file implements Python buffer protocol using Sycl USM shared and host
2122
allocators. The USM device allocator is also exposed through this module for

dpctl/program/_program.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
# distutils: language = c++
1818
# cython: language_level=3
19+
# cython: linetrace=true
1920

2021
"""Implements a Python interface for SYCL's program and kernel runtime classes.
2122

dpctl/tensor/_usmarray.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
# distutils: language = c++
1818
# cython: language_level=3
19+
# cython: linetrace=true
1920

2021
import numpy as np
2122

0 commit comments

Comments
 (0)