Bobby Wang created SPARK-47088:
----------------------------------

             Summary: 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


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]

Reply via email to