Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static method SyclQueue._create_from_context_and_device change #579

Merged

Conversation

oleksandr-pavlyk
Copy link
Collaborator

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

  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
Copy link
Collaborator

coveralls commented Sep 8, 2021

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
Collaborator Author

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

Copy link
Contributor

@PokhodenkoSA PokhodenkoSA left a comment

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