summaryrefslogtreecommitdiff
path: root/offload/unittests/OffloadAPI/device_code/byte.cpp
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2025-10-06 12:49:44 -0500
committerGitHub <noreply@github.com>2025-10-06 12:49:44 -0500
commit8763812b4c60a702094d03c45d3a9db4478ca331 (patch)
tree42c973cd5a1301a3685407c5fc45d3447a179f63 /offload/unittests/OffloadAPI/device_code/byte.cpp
parent839b91c2294b4aeb5598309f90afa241ace5acef (diff)
[Offload] Remove check on kernel argument sizes (#162121)
Summary: This check is unnecessarily restrictive and currently incorrectly fires for any size less than eight bytes. Just remove it, we do sanity checks elsewhere and at some point need to trust the ABI.
Diffstat (limited to 'offload/unittests/OffloadAPI/device_code/byte.cpp')
-rw-r--r--offload/unittests/OffloadAPI/device_code/byte.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/offload/unittests/OffloadAPI/device_code/byte.cpp b/offload/unittests/OffloadAPI/device_code/byte.cpp
new file mode 100644
index 000000000000..779d120fefca
--- /dev/null
+++ b/offload/unittests/OffloadAPI/device_code/byte.cpp
@@ -0,0 +1,3 @@
+#include <gpuintrin.h>
+
+extern "C" __gpu_kernel void byte(unsigned char c) { (void)c; }