[ 
https://issues.apache.org/jira/browse/SPARK-62337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated SPARK-62337:
-----------------------------------
    Labels: pull-request-available  (was: )

> test_np_maximum_minimum_null_propagation is flaky with NumPy < 1.25 on AVX512 
> CPUs
> ----------------------------------------------------------------------------------
>
>                 Key: SPARK-62337
>                 URL: https://issues.apache.org/jira/browse/SPARK-62337
>             Project: Spark
>          Issue Type: Test
>          Components: Pandas API on Spark
>    Affects Versions: 5.0.0
>            Reporter: Tian Gao
>            Priority: Minor
>              Labels: pull-request-available
>
> test_np_maximum_minimum_null_propagation in 
> pyspark.pandas.tests.test_numpy_compat (and its
> Connect parity suite) compares the result of np.cos on a pandas-on-Spark 
> Series with np.cos on a
> pandas Series using an exact comparison. It fails intermittently in the 
> minimum-dependencies
> Python workflow (NumPy 1.23.2):
> {noformat}
> [left]:  [nan, 0.5403023058681398]
> [right]: [nan, 0.5403023058681397]
> {noformat}
> Spark returns the correctly rounded cos(1.0). NumPy < 1.25 computes float64 
> cos with an AVX512
> SIMD path on CPUs that support it, and that path is 1 ULP off for cos(1.0). 
> Whether a CI job fails
> depends on the CPU of the runner it lands on, so the classic and Connect 
> suites fail independently
> from run to run.
> Locally, NumPy 1.23.2 and 1.24.4 return 0.5403023058681397 on an AVX512 
> machine and
> 0.5403023058681398 with NPY_DISABLE_CPU_FEATURES=AVX512_SKX. NumPy 1.25.0 and 
> later return
> 0.5403023058681398.
> The assertion was added in 
> https://github.com/apache/spark/commit/81a93ab2b3a05598177d745a4604e908a7d9f68e.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to