This is an archive of the discontinued LLVM Phabricator instance.

[CUDA, test-suite] Added tests for integer SIMD functions.
ClosedPublic

Authored by tra on Jul 19 2018, 5:30 PM.

Details

Summary

CUDA-9.2 made these function compiler builtins, so clang no longer has access to
their implementation and we had to provide our own (D49274). These tests verify that the
result of these function match the ones provided by the reference
implementation.

Effectively the tests with CUDA-9.1 or older tests the reference
implementation. THe SIMD functions are provided by CUDA SDK and are the ground
truth for the test. The tests make sure that the code provided by the tests
matches it. The tests with CUDA-9.2 use clang-provided SIMD functions and the
implementation provided by the test is the ground truth.

Event Timeline

tra created this revision.Jul 19 2018, 5:30 PM
tra edited the summary of this revision. (Show Details)Jul 19 2018, 5:31 PM
bkramer accepted this revision.Jul 20 2018, 3:08 AM

I don't know much about cuda, but this looks fine to me.

This revision is now accepted and ready to land.Jul 20 2018, 3:08 AM
tra updated this revision to Diff 156514.Jul 20 2018, 9:23 AM
tra edited the summary of this revision. (Show Details)

Minor cleanups.

This revision was automatically updated to reflect the committed changes.