[
https://issues.apache.org/jira/browse/SPARK-47088?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated SPARK-47088:
-----------------------------------
Labels: pull-request-available (was: )
> Utilize BigDecimal to calculate the GPU resource
> -------------------------------------------------
>
> Key: SPARK-47088
> URL: https://issues.apache.org/jira/browse/SPARK-47088
> Project: Spark
> Issue Type: Improvement
> Components: Spark Core
> Affects Versions: 4.0.0
> Reporter: Bobby Wang
> Priority: Minor
> Labels: pull-request-available
>
> To prevent precision errors, the current method of calculating GPU resources
> involves multiplying by 1E16 to convert doubles to Longs. If needed, it will
> also convert Longs back to doubles. This approach introduces redundancy in
> the code, especially for test code.
> More details can be found atÂ
> https://github.com/apache/spark/pull/44690#discussion_r1482301112
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]