From 37e8917d10626b519470f2e34625f0efe741352f Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Thu, 10 Jun 2021 14:57:09 -0400 Subject: CUDA layout corner cases/testing (#1881) * #include an absolute path didn't work - because paths were taken to always be relative. * Add support for sizeOf/alignOf/offsetOf to stdlib. Add $G intrinsic expansion that works of the generic parameters not the param type * Test cuda layout. * Fix CUDA layout issues. Fix reflection to handle other built in types. Fix __offsetOf * Tests of reflection and layout as reported directly from CUDA. * Comment about use of aligned size as size. * Fix warning from VS. * Check alignment is pow2. * Small improvements to alignment calcs. * Tab to spaces. * Fix alignment pointer sizes on 32 bit OS for CUDA. * Fix CUDA reflection on 32 bit. --- tests/cuda/cuda-array-layout.slang.expected.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/cuda/cuda-array-layout.slang.expected.txt (limited to 'tests/cuda/cuda-array-layout.slang.expected.txt') diff --git a/tests/cuda/cuda-array-layout.slang.expected.txt b/tests/cuda/cuda-array-layout.slang.expected.txt new file mode 100644 index 000000000..bc3e8bd6c --- /dev/null +++ b/tests/cuda/cuda-array-layout.slang.expected.txt @@ -0,0 +1,9 @@ +type: int32_t +48 +0 +16 +20 +44 +0 +0 +0 -- cgit v1.2.3