This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
src/ci/docker/host-x86_64/test-various Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,11 @@ ENV WASM_SCRIPT python3 /checkout/x.py --stage 2 test --host='' --target $WASM_T
60
60
tests/assembly \
61
61
library/core
62
62
63
- ENV NVPTX_TARGETS=nvptx64-nvidia-cuda
63
+ ENV NVPTX_TARGETS=nvptx64-nvidia-cuda \
64
+ CC_nvptx64_nvidia_cuda=clang-11 \
65
+ CXX_nvptx64_nvidia_cuda=clang++-11 \
66
+ CFLAGS_nvptx64_nvidia_cuda=-flto \
67
+ CXXFLAGS_nvptx64_nvidia_cuda=-flto \
64
68
ENV NVPTX_SCRIPT python3 /checkout/x.py --stage 2 test --host='' --target $NVPTX_TARGETS \
65
69
tests/run-make \
66
70
tests/assembly
Original file line number Diff line number Diff line change @@ -268,6 +268,11 @@ float get_c_exhaust_sysv64_ints(
268
268
return h .c ;
269
269
}
270
270
271
+ // Variadic arguments are broken when using clang to compile nvptx-nvidia-cuda,
272
+ // causing clang to ICE. As no test run on CI currently relies on these
273
+ // functions, we don't compile them when building for nvptx-nvidia-cuda.
274
+ #ifdef __CUDA_ARCH__
275
+
271
276
// Calculates the average of `(x + y) / n` where x: i64, y: f64. There must be exactly n pairs
272
277
// passed as variadic arguments. There are two versions of this function: the
273
278
// variadic one, and the one that takes a `va_list`.
@@ -290,6 +295,8 @@ double rust_interesting_average(uint64_t n, ...) {
290
295
return sum ;
291
296
}
292
297
298
+ #endif
299
+
293
300
int32_t rust_int8_to_int32 (int8_t x ) {
294
301
return (int32_t )x ;
295
302
}
You can’t perform that action at this time.
0 commit comments