Issue 165596
Summary [HLSL] Miscompilation of `Cast_(u)int64_emulated_float16_native_accum16_256.*` DML shaders directly cause 9 operator test failures on NVIDIA and Intel
Labels HLSL
Assignees
Reporter Icohedron
    9 DML operator test failures consistent across devices with NVIDIA and Intel GPUs are confirmed to be caused by the following shaders:
```
Cast_uint64_emulated_float16_native_accum16_256_Packed4D
Cast_int64_emulated_float16_native_accum16_256_Strided8D
Cast_int64_emulated_float16_native_accum16_256_Strided4D
Cast_uint64_emulated_float16_native_accum32_256_Packed4D
Cast_uint64_emulated_float16_native_accum16_256_Packed4D
Cast_uint64_emulated_float16_native_accum32_256_Packed4D
Cast_int64_emulated_float16_native_accum16_256_Packed4D
Cast_uint64_emulated_float16_native_accum32_256_Strided4D
Cast_uint64_emulated_float16_native_accum16_256_Packed4D
```

Failing tests: (Note that only NVIDIA and Intel fail the following tests. AMD passes these tests.)
```
OperatorTests::Cast#1019
OperatorTests::Cast#154
OperatorTests::Cast#394
OperatorTests::Cast#440
OperatorTests::Cast#553
OperatorTests::Cast#59
OperatorTests::Cast#698
OperatorTests::Cast#738
OperatorTests::Cast#812
```

## Sample Reproduction
```
> .\TE.exe DirectML.Test.OperatorTests.dll /name:"OperatorTests::Cast#1019" /p:DisableMetacommands=1 /logOutput:low
Test Authoring and Execution Framework v10.72 for x64

StartGroup: OperatorTests::Cast#1019
Error: Output Tensor #0:
Error: Tensor Sizes: 3,1
Error: Tensor Data Type: float16
Error: Index: 0000 @00000000 [0,0].  Ref: 47.0000000000 (0x51E0).  DML: inf (0x7C00).  Abs: inf. Rel: -nan(ind)%.  Ulp: 10784
Error: Index: 0001 @00000001 [1,0].  Ref: 101.0000000000 (0x5650).  DML: inf (0x7C00).  Abs: inf.  Rel: -nan(ind)%. Ulp: 9648
Error: Index: 0002 @00000002 [2,0].  Ref: 120.0000000000 (0x5780). DML: inf (0x7C00).  Abs: inf.  Rel: -nan(ind)%.  Ulp: 9344
Error: 3 / 3 (100.000000%) of elements were found to be above tolerance.
Error: Max ULP delta: 10784.  Allowed tolerance: 0 ULPs (float16).
Error: Verify: Fail [File: C:\__w\1\s\DirectML\SharedToolingLib\External\Test\TaefHelper\TaefHelper.cpp, Function: TaefHelper::Fail, Line: 133]
EndGroup: OperatorTests::Cast#1019 [Failed]

Summary of Non-passing Tests:
    OperatorTests::Cast#1019 [Failed]

Summary: Total=1, Passed=0, Failed=1, Blocked=0, Not Run=0, Skipped=0
```



_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to