adoptium / bumblebench

A microbenchmarking test framework for Eclipse Adoptium
Apache License 2.0
23 stars 32 forks source link

InstantiationException while Running KmeansBench GPULambda #15

Closed piyush286 closed 5 years ago

piyush286 commented 5 years ago

Problem Description

Running KmeansBench GPULambda gives java.lang.InstantiationException as shown below. I've saw this issue while using Java 8 OpenJ9 and Java 11 HotSpot but it should happen on all JDKs.

I'm adding this test: bumbleBench-KmeansBench-GPULambda to Adopt Test repo in this playlist for BumbleBench: https://github.com/AdoptOpenJDK/openjdk-tests/blob/master/perf/bumbleBench/playlist.xml.

Relevant Console Output with Error

18:07:39  ===============================================
18:07:39  Running test bumbleBench-KmeansBench-GPULambda_0 ...
18:07:39  ===============================================
18:07:39  bumbleBench-KmeansBench-GPULambda_0 Start Time: Mon Oct 21 22:07:39 2019 Epoch Time (ms): 1571695659641
18:07:39  "/java/jenkins/workspace/Piyush-Grinder/openjdkbinary/j2sdk-image/bin/java" -Xshareclasses:destroyAll; "/java/jenkins/workspace/Piyush-Grinder/openjdkbinary/j2sdk-image/bin/java" -Xshareclasses:groupAccess,destroyAll; echo "cache cleanup done";
18:07:39  JVMSHRC005I No shared class caches available
18:07:39  JVMSHRC005I No shared class caches available
18:07:39  cache cleanup done
18:07:39  variation: NoOptions
18:07:39  JVM_OPTIONS: -Xcompressedrefs 
18:07:39  { itercnt=1; \
18:07:39  mkdir -p "/java/jenkins/workspace/Piyush-Grinder/openjdk-tests/TestConfig/scripts/testKitGen/../../../TestConfig/test_output_15716952597279/bumbleBench-KmeansBench-GPULambda_0"; \
18:07:39  cd "/java/jenkins/workspace/Piyush-Grinder/openjdk-tests/TestConfig/scripts/testKitGen/../../../TestConfig/test_output_15716952597279/bumbleBench-KmeansBench-GPULambda_0"; \
18:07:39  "/java/jenkins/workspace/Piyush-Grinder/openjdkbinary/j2sdk-image/bin/java" -jar /java/jenkins/workspace/Piyush-Grinder/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/perf/bumbleBench/bumblebench/BumbleBench.jar KmeansBench.GPULambda; \
18:07:39    if [ $? -eq 0 ] ; then echo ""; echo "bumbleBench-KmeansBench-GPULambda_0""_PASSED"; echo ""; cd /java/jenkins/workspace/Piyush-Grinder/openjdk-tests/TestConfig/scripts/testKitGen/../../..;  else echo ""; echo "bumbleBench-KmeansBench-GPULambda_0""_FAILED"; echo ""; fi; } 2>&1 | tee -a "/java/jenkins/workspace/Piyush-Grinder/openjdk-tests/TestConfig/scripts/testKitGen/../../../TestConfig/test_output_15716952597279/TestTargetResult";
18:07:40  Exception in thread "main" java.lang.InstantiationException: net.adoptopenjdk.bumblebench.gpu.KmeansBench$GPULambda
18:07:40    at java.lang.J9VMInternals.newInstanceImpl(Native Method)
18:07:40    at java.lang.Class.newInstance(Class.java:1848)
18:07:40    at net.adoptopenjdk.bumblebench.core.Launcher.main(Launcher.java:55)
18:07:40  
18:07:40  bumbleBench-KmeansBench-GPULambda_0_FAILED
18:07:40  
18:07:40  "/java/jenkins/workspace/Piyush-Grinder/openjdkbinary/j2sdk-image/bin/java" -Xshareclasses:destroyAll; "/java/jenkins/workspace/Piyush-Grinder/openjdkbinary/j2sdk-image/bin/java" -Xshareclasses:groupAccess,destroyAll; echo "cache cleanup done";
18:07:40  
18:07:40  Attempting to destroy all caches in cacheDir /home/jbench/javasharedresources/
18:07:40  
18:07:40  JVMSHRC806I Compressed references persistent shared cache "sharedcc_jbench" has been destroyed. Use option -Xnocompressedrefs if you want to destroy a non-compressed references cache.
18:07:40  JVMSHRC005I No shared class caches available
18:07:40  cache cleanup done
18:07:40  bumbleBench-KmeansBench-GPULambda_0 Finish Time: Mon Oct 21 22:07:39 2019 Epoch Time (ms): 1571695659956
18:07:40  
18:07:40  ===============================================

To Reproduce

Use the bumbleBench-KmeansBench-GPULambda target on TestKitGen