org.apache.spark.SparkException: Could not initialize CUDA, because native jCuda libraries were not detected - make sure Driver and Executors are able to load them

GitHub | TPolzer | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Maven executes tests for gpu-enabler before native libs are deployed

    GitHub | 7 months ago | TPolzer
    org.apache.spark.SparkException: Could not initialize CUDA, because native jCuda libraries were not detected - make sure Driver and Executors are able to load them

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      Could not initialize class jcuda.driver.JCudaDriver

      at com.ibm.gpuenabler.TestJavaCUDASuite.MultiSum()
    2. com.ibm.gpuenabler
      TestJavaCUDASuite.MultiSum
      1. com.ibm.gpuenabler.TestJavaCUDASuite.MultiSum(TestJavaCUDASuite.java:106)
      1 frame