You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Bobby Wang (Jira)" <ji...@apache.org> on 2024/02/19 00:08:00 UTC

[jira] [Created] (SPARK-47088) Utilize BigDecimal to calculate the GPU resource

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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org