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

PytatoPyOpenCLArrayContext: don't trust the arg limit reported by the GPU #198

Merged
merged 5 commits into from
Sep 26, 2022

Conversation

matthiasdiener
Copy link
Collaborator

@matthiasdiener matthiasdiener commented Sep 23, 2022

Apparently, CUDA doesn't like it when argument sizes get close to the reported limit.

Avoids PTX/JIT errors of the type:
CUDA_ERROR_INVALID_IMAGE: device kernel image is invalid
CUDA_ERROR_FILE_NOT_FOUND: file not found

Partially addresses illinois-ceesd/mirgecom#679

GPU

Apparently, CUDA doesn't like it when argument sizes get close
to the reported limit.
Avoids PTX/JIT errors of the type
CUDA_ERROR_INVALID_IMAGE: device kernel image is invalid
CUDA_ERROR_FILE_NOT_FOUND: file not found
@matthiasdiener matthiasdiener self-assigned this Sep 23, 2022
@inducer
Copy link
Owner

inducer commented Sep 24, 2022

Interesting. That's a weird error message for "too many arguments".

@inducer
Copy link
Owner

inducer commented Sep 24, 2022

LMK when you think this is ready.

@matthiasdiener matthiasdiener marked this pull request as ready for review September 25, 2022 22:44
@matthiasdiener
Copy link
Collaborator Author

I have tested this and it seems to return us to the previous state described in illinois-ceesd/mirgecom#679. This was a regression from my gist which set a fixed limit of 1024 on all devices. @MTCam also experimented with this PR. This is ready for review.

Copy link
Owner

@inducer inducer left a comment

Choose a reason for hiding this comment

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

Thanks. LGTM with two minor tweaks.

arraycontext/impl/pytato/__init__.py Show resolved Hide resolved
arraycontext/impl/pytato/__init__.py Show resolved Hide resolved
@inducer inducer enabled auto-merge (rebase) September 26, 2022 04:58
@inducer
Copy link
Owner

inducer commented Sep 26, 2022

LGTM, thanks!

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