Skip to content

[SYCL] device resource limits. #12271

Description

@jinz2014

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.

Activity

  1. maksimsab commented on Jan 5, 2024

    @maksimsab
    Contributor

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

  2. jinz2014 commented on Jan 5, 2024

    @jinz2014
    ContributorAuthor

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

  3. jinz2014 commented on Jan 5, 2024

    @jinz2014
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cudaCUDA back-endenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions