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

[SYCL] device resource limits. #12271

Open
jinz2014 opened this issue Dec 31, 2023 · 3 comments
Open

[SYCL] device resource limits. #12271

jinz2014 opened this issue Dec 31, 2023 · 3 comments
Labels
cuda CUDA back-end enhancement New feature or request

Comments

@jinz2014
Copy link
Contributor

jinz2014 commented Dec 31, 2023

I find that some CUDA program sets stack sizes. Please suggest which SYCL functions could set device resource limits.

cudaDeviceGetLimit(&limit, cudaLimitStackSize);
cudaDeviceSetLimit(cudaLimitStackSize, limit * 12);

Without adjusting the stack size, the CUDA program will report illegal memory accesses.

Thanks.

@jinz2014 jinz2014 added the enhancement New feature or request label Dec 31, 2023
@maksimsab
Copy link
Contributor

maksimsab commented Jan 5, 2024

@jinz2014 If you target a nvidia device then could you please try this environment variable SYCL_PI_CUDA_MAX_LOCAL_MEM_SIZE ?

@jinz2014
Copy link
Contributor Author

jinz2014 commented Jan 5, 2024

Thank you for your reply. It might be confusing; local memory may mean shared local memory.

@jinz2014
Copy link
Contributor Author

jinz2014 commented Jan 5, 2024

The Cuda program is https://github.com/cuhk-eda/CULS

@steffenlarsen steffenlarsen added the cuda CUDA back-end label Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuda CUDA back-end enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants