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

[Bug]: Combining --no-inline and CHPL_LOCALE_MODEL=gpu results in a internal error #26125

Open
jabraham17 opened this issue Oct 23, 2024 · 1 comment

Comments

@jabraham17
Copy link
Member

Attempting to compile any Chapel program with --no-inline and CHPL_LOCALE_MODEL=gpu results in an internal error. This occurs in any Chapel program.

;

Compiling as CHPL_LOCALE_MODEL=gpu CHPL_GPU=cpu chpl bug.chpl --no-inline hits the error. This is due to an incorrect assumption in extractIndicesAndLowerBounds in gpuTransforms. This also gets hit with real gpus (CHPL_GPU=amd for example).

This is not a particularly high priority bug as I think its uncommon for --no-inline to be thrown by users, but I find it useful when debugging (which is how I hit this problem)

Chapel env

CHPL_TARGET_PLATFORM: darwin
CHPL_TARGET_COMPILER: llvm
CHPL_TARGET_ARCH: arm64
CHPL_TARGET_CPU: native *
CHPL_LOCALE_MODEL: gpu *
  CHPL_GPU: cpu *
CHPL_COMM: none
CHPL_TASKS: qthreads
CHPL_LAUNCHER: none
CHPL_TIMERS: generic
CHPL_UNWIND: none
CHPL_MEM: jemalloc
CHPL_ATOMICS: cstdlib
CHPL_GMP: system *
CHPL_HWLOC: system *
CHPL_RE2: bundled *
CHPL_LLVM: system
CHPL_AUX_FILESYS: none
@e-kayrakli
Copy link
Contributor

Nice reproducer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants