Skip to content

Instantly share code, notes, and snippets.

View abhijangda's full-sized avatar

Abhinav Jangda abhijangda

View GitHub Profile
@abhijangda
abhijangda / prob
Last active August 29, 2015 14:23
int length (int pixelNumber, direction)
{
int _length = 0;
while (until a node is found or a line ends)
{
trace the line starting from pixelNumber in given direction;
_length++;
pixelNumber++;
}
struct A {
global unsigned char *src;
global unsigned char *dst;
int size;
};
typedef struct A B;
__kernel void simple_demo(__global B *a)
{
int i = get_global_id(0);
int j;\n"
#pragma OPENCL EXTENSION cl_khr_icd : enable
#include <CL/cl.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
adaptive 1000 1000 0.5 0.10
Overhead for lusearch is 0.858505564388
Overhead for jython is 8.00937393394
Overhead for luindex is 2.01659038902
Overhead for xalan is 17.3142995403
Overhead for pmd is 3.98306519898
Overhead for sunflow is 3.75793817092
Overhead is 6.05338546469
adaptive 1000 1000 0.3 0.0
STATIC COMPILE
STATIC RECOMPILE
static recompile 0.5
Overhead for lusearch lusearch is 3.50556438792
Overhead for jython jython is 5.04293914359
Overhead for luindex luindex is 7.63014874142
Overhead for xalan xalan is 18.8918461166
Overhead for pmd pmd is 6.02540220152
Overhead for sunflow sunflow is 6.05638116115
Overhead is 6.68215853344
static recompile 1000 0.5
Overhead for lusearch lusearch is 4.80604133545
Overhead for jython jython is 13.0612123819
Overhead for luindex luindex is 5.26315789474
Overhead for xalan xalan is 23.0292765546
Overhead for pmd pmd is 7.20406435224
Overhead for sunflow sunflow is 8.06630991909
Overhead is 10.5799613933
static recompile 1000 0.3
Adaptive Sleeptime Threshold
TestName Overhead%
adaptive 1000 100 0.5 0.25
Overhead for lusearch is 4.91891891892
Overhead for jython is 13.1457557734
Overhead for luindex is 7.4942791762
Overhead for xalan is 19.9153157513
Overhead for pmd is 5.00931414056
Overhead for sunflow is 5.69049998388
public class Method
{
Code machineCode;
int invocationCounter;
}
public class RecompilationThread
{
public void run ()
{
MainThread.run() invoking "main" method...
JikesRVM: error loading library ./libjnidispatch.so: ./libjnidispatch.so: cannot open shared object file: No such file or directory
JikesRVM: error loading library ./libjnidispatch.so: ./libjnidispatch.so: cannot open shared object file: No such file or directory
JikesRVM: error loading library /tmp/jna14dc7844910.tmp: /tmp/jna14dc7844910.tmp: wrong ELF class: ELFCLASS64
===== DaCapo 9.12 jython starting =====
-------------------------------------------------------------------------------
PYBENCH 2.0
-------------------------------------------------------------------------------
* using Python 2.5.0+
* system check interval set to maximum: 2147483647
===== DaCapo 9.12 jython starting =====
-------------------------------------------------------------------------------
PYBENCH 2.0
-------------------------------------------------------------------------------
* using Python 2.5.0+
* system check interval set to maximum: 2147483647
* using timer: time.time
Calibrating tests. Please wait...