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

Add EnzymeCore extension #536

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Add EnzymeCore extension #536

wants to merge 7 commits into from

Conversation

wsmoses
Copy link
Contributor

@wsmoses wsmoses commented May 28, 2024

No description provided.

@wsmoses
Copy link
Contributor Author

wsmoses commented May 28, 2024

@maleadt all passed locally :)

lib/GPUArraysCore/test/runtests.jl Outdated Show resolved Hide resolved
@wsmoses wsmoses force-pushed the master branch 2 times, most recently from 0a135c0 to 5156198 Compare May 28, 2024 15:55
@wsmoses
Copy link
Contributor Author

wsmoses commented May 31, 2024

@maleadt can this get a review?

Comment on lines 4 to 8
@test nothing == EnzymeCore.EnzymeRules.inactive_noinl(GPUArraysCore.assertscalar)

@test nothing == EnzymeCore.EnzymeRules.inactive_noinl(GPUArraysCore.default_scalar_indexing)

@test nothing == EnzymeCore.EnzymeRules.inactive_noinl(GPUArraysCore.allowscalar, identity)
Copy link
Member

Choose a reason for hiding this comment

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

Testing for the exact definition of interface methods isn't good testing. We don't want to have to update tests every time implementation details (of Enzyme or GPUArrays) change. Instead, this should test for observed, meaningful behavior (i.e., why are these definitions needed in the first place).

@maleadt
Copy link
Member

maleadt commented Jun 4, 2024

CI failure related.

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.

2 participants