Skip to content

Instantly share code, notes, and snippets.

@hgomez
Created August 15, 2012 18:41
Show Gist options
  • Select an option

  • Save hgomez/3362252 to your computer and use it in GitHub Desktop.

Select an option

Save hgomez/3362252 to your computer and use it in GitHub Desktop.
RootBeer tests on OSX
mbp-rico:rootbeer1 henri$ java -Xmx4g -jar Rootbeer.jar -runtests
Initializing RootbeerScene...
Finding RunOnGpu Classes...
Loading Scene...
Loading all methods in visited classes...
Finding kernel reachable methods...
Remapping some classes to GPU versions...
Failed to load body for method: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double cos(double)>
Failed to load body for method: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double hypot(double,double)>
Failed to load body for method: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double expm1(double)>
Failed to load body for method: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double log1p(double)>
Failed to load body for method: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double exp(double)>
Failed to load body for method: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double log(double)>
Failed to load body for method: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double log10(double)>
Failed to load body for method: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double sqrt(double)>
Failed to load body for method: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double cbrt(double)>
Failed to load body for method: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double IEEEremainder(double,double)>
Failed to load body for method: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double sin(double)>
Failed to load body for method: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double tan(double)>
Failed to load body for method: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double asin(double)>
Failed to load body for method: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double acos(double)>
Failed to load body for method: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double atan(double)>
Failed to load body for method: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double atan2(double,double)>
Failed to load body for method: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double sinh(double)>
Failed to load body for method: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double cosh(double)>
Failed to load body for method: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double tanh(double)>
Failed to load body for method: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double pow(double,double)>
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.SuperClassRunOnGpu
No body for method: <java.lang.Throwable: java.lang.Throwable fillInStackTrace()>
No body for method: <java.lang.System: void arraycopy(java.lang.Object,int,java.lang.Object,int,int)>
Failed to load body for method: <java.lang.Throwable: java.lang.Throwable fillInStackTrace()>
Failed to load body for method: <java.lang.System: void arraycopy(java.lang.Object,int,java.lang.Object,int,int)>
Failed to load body for method: <java.lang.Throwable: int getStackTraceDepth()>
Failed to load body for method: <java.lang.Throwable: java.lang.StackTraceElement getStackTraceElement(int)>
Failed to load body for method: <java.lang.Object: java.lang.Object clone()>
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.baseconversion.BaseConversionRunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.exception.NullPointer1RunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.exception.NullPointer2RunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.exception.NullPointer3RunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.exception.NullPointer4RunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.gpurequired.AtomicLongRunOnGpu
No body for method: <java.lang.System: long nanoTime()>
Failed to load body for method: <java.lang.System: long nanoTime()>
Error creating method body: <java.lang.System: long nanoTime()>
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.gpurequired.BruteForceFFTRunOnGpu
No body for method: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double pow(double,double)>
Error creating method body: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double pow(double,double)>
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.gpurequired.LargeMemTestRunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.gpurequired.MultiArrayRunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.gpurequired.NewOnGpuRunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.gpurequired.SimpleSynchronizedRunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.gpurequired.StaticsTest1RunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.gpurequired.StaticsTest2RunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.gpurequired.StaticsTest3RunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.gpurequired.StepFilterRunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.gpurequired.SynchronizedMethod2RunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.gpurequired.SynchronizedMethod3RunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.gpurequired.SynchronizedMethodRunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.gpurequired.SynchronizedObjectRunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.gpurequired.SynchronizedStaticMethodRunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.gpurequired.WhileTrueRunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.ofcoarse.GpuWorkItem
No body for method: <java.lang.Double: long doubleToRawLongBits(double)>
No body for method: <java.lang.Double: double longBitsToDouble(long)>
Failed to load body for method: <java.lang.Double: long doubleToRawLongBits(double)>
Failed to load body for method: <java.lang.Double: double longBitsToDouble(long)>
Error creating method body: <java.lang.Double: long doubleToRawLongBits(double)>
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.serialization.ByteArraysRunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.serialization.CharArraysRunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.serialization.DoubleArraysRunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.serialization.FloatArraysRunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.serialization.GpuListRunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.serialization.IntArraysRunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.serialization.LongArraysRunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.serialization.MMultRunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.serialization.NativeStrictMathRunOnGpu
No body for method: <java.lang.StrictMath: double exp(double)>
No body for method: <java.lang.StrictMath: double log(double)>
No body for method: <java.lang.StrictMath: double log10(double)>
No body for method: <java.lang.StrictMath: double sqrt(double)>
No body for method: <java.lang.StrictMath: double cbrt(double)>
No body for method: <java.lang.StrictMath: double IEEEremainder(double,double)>
No body for method: <java.lang.Double: long doubleToRawLongBits(double)>
No body for method: <java.lang.Throwable: java.lang.Throwable fillInStackTrace()>
No body for method: <java.lang.Double: double longBitsToDouble(long)>
No body for method: <java.lang.StrictMath: double sin(double)>
No body for method: <java.lang.StrictMath: double tan(double)>
No body for method: <java.lang.StrictMath: double asin(double)>
No body for method: <java.lang.StrictMath: double acos(double)>
No body for method: <java.lang.StrictMath: double atan(double)>
No body for method: <java.lang.StrictMath: double atan2(double,double)>
No body for method: <java.lang.StrictMath: double pow(double,double)>
No body for method: <java.lang.StrictMath: double sinh(double)>
No body for method: <java.lang.StrictMath: double cosh(double)>
No body for method: <java.lang.StrictMath: double tanh(double)>
Failed to load body for method: <java.lang.StrictMath: double exp(double)>
Failed to load body for method: <java.lang.StrictMath: double log(double)>
Failed to load body for method: <java.lang.StrictMath: double log10(double)>
Failed to load body for method: <java.lang.StrictMath: double sqrt(double)>
Failed to load body for method: <java.lang.StrictMath: double cbrt(double)>
Failed to load body for method: <java.lang.StrictMath: double IEEEremainder(double,double)>
Failed to load body for method: <java.lang.StrictMath: double sin(double)>
Failed to load body for method: <java.lang.StrictMath: double tan(double)>
Failed to load body for method: <java.lang.StrictMath: double asin(double)>
Failed to load body for method: <java.lang.StrictMath: double acos(double)>
Failed to load body for method: <java.lang.StrictMath: double atan(double)>
Failed to load body for method: <java.lang.StrictMath: double atan2(double,double)>
Failed to load body for method: <java.lang.StrictMath: double pow(double,double)>
Failed to load body for method: <java.lang.StrictMath: double sinh(double)>
Failed to load body for method: <java.lang.StrictMath: double cosh(double)>
Failed to load body for method: <java.lang.StrictMath: double tanh(double)>
Error creating method body: <java.lang.Double: long doubleToRawLongBits(double)>
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.serialization.OuterClass3RunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.serialization.OuterClassRunOnGpu$OuterClassRunOnGpu2
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.serialization.OuterClassRunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.serialization.RefTypeArraysRunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.serialization.SameClassUsedTwiceRunOnGpu1
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.serialization.SameClassUsedTwiceRunOnGpu2
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.serialization.ShortArraysRunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.serialization.SimpleTestRunOnGpu
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.serialization.StrictMatchRunOnGpu
No body for method: <java.lang.Double: long doubleToRawLongBits(double)>
No body for method: <java.lang.Double: double longBitsToDouble(long)>
Error creating method body: <java.lang.Double: long doubleToRawLongBits(double)>
Compiling CUDA code.
Running Transform2 on: edu.syr.pcpratts.rootbeer.testcases.rootbeertest.serialization.StringRunOnGpu
No body for method: <java.lang.System: void arraycopy(java.lang.Object,int,java.lang.Object,int,int)>
No body for method: <java.lang.Throwable: java.lang.Throwable fillInStackTrace()>
Compiling CUDA code.
Packing up output.jar
[TEST 1/38] edu.syr.pcpratts.rootbeer.testcases.rootbeertest.gpurequired.NewOnGpu@65ae1c0c
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at edu.syr.pcpratts.rootbeer.runtime.RootbeerFactory.create(RootbeerFactory.java:19)
at edu.syr.pcpratts.rootbeer.runtime.Rootbeer.<init>(Rootbeer.java:19)
at edu.syr.pcpratts.rootbeer.RootbeerTestAgent.test(RootbeerTestAgent.java:116)
at edu.syr.pcpratts.rootbeer.RootbeerTestAgent.test(RootbeerTestAgent.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at edu.syr.pcpratts.rootbeer.RootbeerTest.runTests(RootbeerTest.java:48)
at edu.syr.pcpratts.rootbeer.Main.run(Main.java:82)
at edu.syr.pcpratts.rootbeer.Main.main(Main.java:106)
Caused by: edu.syr.pcpratts.rootbeer.runtime2.cuda.CudaErrorException: CUDA_ERROR_OUT_OF_MEMORY: gpuHandlesMemory memory allocation failed
at edu.syr.pcpratts.rootbeer.runtime2.cuda.CudaRuntime2.setup(Native Method)
at edu.syr.pcpratts.rootbeer.runtime2.cuda.CudaRuntime2.<init>(CudaRuntime2.java:80)
at edu.syr.pcpratts.rootbeer.runtime2.cuda.CudaRuntime2.v(CudaRuntime2.java:34)
at edu.syr.pcpratts.rootbeer.runtime.ConcreteRootbeer.<init>(ConcreteRootbeer.java:27)
... 15 more
FAILED
Exception thrown at index: 0
java.lang.NullPointerException
at edu.syr.pcpratts.rootbeer.runtime.Rootbeer.runAll(Rootbeer.java:23)
at edu.syr.pcpratts.rootbeer.RootbeerTestAgent.test(RootbeerTestAgent.java:121)
at edu.syr.pcpratts.rootbeer.RootbeerTestAgent.test(RootbeerTestAgent.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at edu.syr.pcpratts.rootbeer.RootbeerTest.runTests(RootbeerTest.java:48)
at edu.syr.pcpratts.rootbeer.Main.run(Main.java:82)
at edu.syr.pcpratts.rootbeer.Main.main(Main.java:106)
[TEST 2/38] edu.syr.pcpratts.rootbeer.testcases.rootbeertest.serialization.SimpleTest@6ac882c4
Invalid memory access of location 0x28 rip=0x116970dbe
Segmentation fault: 11
@pcpratts
Copy link
Copy Markdown

see here [1] for the ongoing discussion of this issue.

[1] https://github.com/pcpratts/rootbeer1/issues/25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment