Skip to content

Static method SyclQueue._create_from_context_and_device change - #579

Merged
oleksandr-pavlyk merged 2 commits into
masterfrom
fix-SyclQueue-create-from-context-and-device
Sep 9, 2021
Merged

Static method SyclQueue._create_from_context_and_device change#579
oleksandr-pavlyk merged 2 commits into
masterfrom
fix-SyclQueue-create-from-context-and-device

Conversation

@oleksandr-pavlyk

@oleksandr-pavlyk oleksandr-pavlyk commented Sep 8, 2021

Copy link
Copy Markdown
Contributor
  1. Added docstrings
  2. Added optional keyword argument props, to allow queue creation
    with properties.
  3. Modified pyproject.toml to not collect coverage of dpctl/tests/* and not to report it. Thus, this PR closes Coverage does not skip tests folder #374
  4. test_sycl_queue now adds a test that build a cython extension and calls Cython API functions, e.g. static methods of classes.

1. Added docstrings
2. Added optional keyword argument props, to allow queue creation
   with properties.

This method is not covered in test suite. To solve this, test suite
needs to learn to build and use Cython extensions
@coveralls

coveralls commented Sep 8, 2021

Copy link
Copy Markdown
Collaborator

Coverage Status

Coverage increased (+0.2%) to 70.961% when pulling 97c9702 on fix-SyclQueue-create-from-context-and-device into 783ded9 on master.

@oleksandr-pavlyk
oleksandr-pavlyk force-pushed the fix-SyclQueue-create-from-context-and-device branch from c975c70 to e4281aa Compare September 9, 2021 15:29
…st Cython API functions

The extension is built in temp folder.

Added cython as Cython test dependency

Pass --cov-config option to pytest with coverage.

This works around coverage config discrepancy between the main
process and a subprocess. See pytest-dev/pytest-cov#243

added _cython_api.pyx to flake exception list

Exclude dpctl/tests/* and dpctl/_version from coverage reporting

Fix loading of Cython extension _cython_api on Windows

Add test for property=int usage
@oleksandr-pavlyk
oleksandr-pavlyk force-pushed the fix-SyclQueue-create-from-context-and-device branch from e4281aa to 97c9702 Compare September 9, 2021 15:44
@oleksandr-pavlyk

Copy link
Copy Markdown
Contributor Author

The PR is now ready for review, and can be merged.

@PokhodenkoSA PokhodenkoSA left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@oleksandr-pavlyk
oleksandr-pavlyk merged commit d785b69 into master Sep 9, 2021
@oleksandr-pavlyk
oleksandr-pavlyk deleted the fix-SyclQueue-create-from-context-and-device branch September 9, 2021 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Coverage does not skip tests folder

3 participants