HomePhabricator

[CUDA, test-suite] Prevent constant folding of the test inputs.

Authored by tra on Aug 4 2020, 5:09 PM.

Description

[CUDA, test-suite] Prevent constant folding of the test inputs.

We want to codegen the code and verify that it actually executes correctly on
the GPU. Passing constand input args via a volatile temporary ensures that the
function call is not collapsed.

Differential Revision: https://reviews.llvm.org/D85349

Details

Committed
traAug 5 2020, 12:44 PM
Parents
rTfcb9c5033da6: [test-suite, CUDA] Run test kernel with just one thread.
Branches
Unknown
Tags
Unknown

Event Timeline