Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-27725

GPU Scheduling - add an example discovery Script

    XMLWordPrintableJSON

Details

    • Story
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • Examples
    • None

    Description

      We should add an example script that can be used to discovery GPU's and output the correctly formatted JSON.

      Something like below, but it needs to be tested on various systems with more then 2 gpu's:

      ADDRS=`nvidia-smi --query-gpu=index --format=csv,noheader | sed 'N;s/\n/\",\"/'`
      COUNT=`echo $ADDRS | tr -cd , | wc -c`
      ALLCOUNT=`expr $COUNT + 1`
      #echo {\"name\": \"gpu\", \"addresses\":[\"$ADDRS\"]}

       

      Attachments

        Issue Links

          Activity

            People

              tgraves Thomas Graves
              tgraves Thomas Graves
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: