llvm / llvm/llvm-project

[OpenMP][SPIRV] `__builtin_trap` on the device doesn't cause a failure

Open
#178,983 1 comment 0 reactions 0 assignees View on GitHub
backend:SPIR-V openmp:libomptarget
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

`./bin/llvm-lit runtimes/runtimes-bins/offload/test/spirv64-intel/offloading/assert.cpp`

runs without error while we expect the unconditional `__builtin_trap` in the device code to cause a crash.

Contributor guide

Open the contributing guide

Research direction

Run ./bin/llvm-lit runtimes/runtimes-bins/offload/test/spirv64-intel/offloading/assert.cpp and inspect the referenced assert.cpp test and its device-code setup. Trace why the unconditional __builtin_trap does not produce the expected failure. Done means the test reliably reports the device failure instead of completing without error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.