[PATCH][testsuite, nvptx] Add effective target sync_int_long_stack
Wed Aug 19 04:35:10 GMT 2020
On Aug 12, 2020, at 6:57 AM, Tom de Vries <email@example.com> wrote:
> The nvptx target currently doesn't support effective target sync_int_long,
> although it has support for 32-bit and 64-bit atomic.
> When enabling sync_int_long for nvptx, we run into a failure in
> nvptx-run: error getting kernel result: operation not supported on \
> global/shared address space
> due to a ptx restriction: accesses to local memory are illegal, and the
> test-case does an atomic operation on a stack address, which is mapped to
> local memory.
> Fix this by adding a target sync_int_long_stack, wich returns false for nvptx,
> which can be used to mark test-cases that require sync_int_long support for
> stack address.
> Build on nvptx and tested with make check-gcc.
> OK for trunk?
More information about the Gcc-patches