Commit f158ea6
committed
test: fix BFloat16 math test on the Aurora LTS stack
The gpuarrays/math/intrinsics BFloat16 subtest failed two ways:
1. Host-side: Core.BFloat16 exists on Julia 1.12 but has no Real->bf16
constructors (those live in BFloat16s.jl), so ET(-1) threw a MethodError
before any GPU work. Add BFloat16s as a test dep and load it in the
worker so the CPU reference path works.
2. Codegen: _device_supports_bfloat16() is a hardware check, but the Aurora
LTS SPIR-V stack (Khronos translator + NEO/IGC) cannot codegen native
bfloat in generic kernels -- clamp! fails with InvalidIRError, and
declaring SPV_KHR_bfloat16 crashes the LTS runtime. Gate the bf16 eltypes
push on !oneL0.LTS[] so BFloat16 is only exercised as a generic element
type off the LTS stack (storage/conversions/oneMKL bf16 are unaffected).1 parent 25d5236 commit f158ea6
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| |||
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
86 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
87 | 95 | | |
88 | 96 | | |
89 | 97 | | |
| |||
0 commit comments