Skip to content

Tests for passing arguments to and from Julia kernels - #407

Closed
benvanwerkhoven wants to merge 1 commit into
masterfrom
expand_julia_tests
Closed

benvanwerkhoven wants to merge 1 commit into
masterfrom
expand_julia_tests

Conversation

@benvanwerkhoven

Copy link
Copy Markdown
Collaborator

I was afraid of breaking the Julia backend unintentionally at some point in the future, thus I wanted to add some more tests. In particular relating to how the arguments are passed in and when verifying kernel output. As I ran into some bits and pieces here and there that was added specifically for Julia while merging other stuff. So this is to make sure that Julia keeps working.

Adds tests with a kernel that accumulates into its output for the first n
elements only. They check that arrays and scalars are passed to and from
the kernel correctly with run_kernel, that the user's arguments are not
modified, and that output verification works and outputs are reset
between configurations. Inputs and answers are tested both as numpy
arrays and as Julia arrays. Also checks that a wrong answer fails
verification.
@sonarqubecloud

Copy link
Copy Markdown

fjwillemsen added a commit that referenced this pull request Nov 2, 2026

@fjwillemsen fjwillemsen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

These extended tests are useful to guarantee good compatibility moving forward. I've pulled this PR into the julia branch, slightly amended the tests and resolved a bug around scalar conversion. Following this, the full tests including these new tests ran successfully.

@benvanwerkhoven

Copy link
Copy Markdown
Collaborator Author

Great! If you've pulled these into another branch, can this pull request be closed?

@fjwillemsen

Copy link
Copy Markdown
Member

Yes, closing and will submit a pull request for the Julia branch soon.

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