diff --git a/related work/bib/bibliography.bib b/related work/bib/bibliography.bib index 0b5d736..f116c4e 100644 --- a/related work/bib/bibliography.bib +++ b/related work/bib/bibliography.bib @@ -70,4 +70,118 @@ url = {https://doi.org/10.1145/2578726.2578798}, } +@InProceedings{brief_introduction_to_opencv, + author = {I. {Culjak} and D. {Abram} and T. {Pribanic} and H. {Dzapo} and M. {Cifrek}}, + title = {A brief introduction to OpenCV}, + booktitle = {2012 Proceedings of the 35th International Convention MIPRO}, + year = {2012}, + pages = {1725-1730}, + month = {May}, + abstract = {The purpose of this paper is to introduce and quickly make a reader familiar with OpenCV (Open Source Computer Vision) basics without having to go through the lengthy reference manuals and books. OpenCV is an open source library for image and video analysis, originally introduced more than decade ago by Intel. Since then, a number of programmers have contributed to the most recent library developments. The latest major change took place in 2009 (OpenCV 2) which includes main changes to the C++ interface. Nowadays the library has >;2500 optimized algorithms. It is extensively used around the world, having >;2.5M downloads and >;40K people in the user group. Regardless of whether one is a novice C++ programmer or a professional software developer, unaware of OpenCV, the main library content should be interesting for the graduate students and researchers in image processing and computer vision areas. To master every library element it is necessary to consult many books available on the topic of OpenCV. However, reading such more comprehensive material should be easier after comprehending some basics about OpenCV from this paper.}, + comment = {a general introduction into opencv}, + issn = {null}, + keywords = {C++ language;computer vision;public domain software;software libraries;OpenCV;open source computer vision;open source library;image analysis;video analysis;Intel;library developments;C++ interface;image processing;Libraries;Image edge detection;Cameras;Computer vision;Histograms;Low pass filters;Detectors}, +} + +@InProceedings{jcudamp, + author = {Dotzler, Georg and Veldema, Ronald and Klemm, Michael}, + title = {JCudaMP: OpenMP/Java on CUDA}, + booktitle = {Proceedings of the 3rd International Workshop on Multicore Software Engineering}, + year = {2010}, + series = {IWMSE ’10}, + pages = {10–17}, + address = {New York, NY, USA}, + publisher = {Association for Computing Machinery}, + abstract = {We present an OpenMP framework for Java that can exploit an available graphics card as an application accelerator. Dynamic languages (Java, C#, etc.) pose a challenge here because of their write-once-run-everywhere approach. This renders it impossible to make compile-time assumptions on whether and which type of accelerator or graphics card might be available in the system at run-time. + +We present an execution model that dynamically analyzes the running environment to find out what hardware is attached. Based on the results it dynamically rewrites the bytecode and generates the necessary gpGPU code on-the-fly. + +Furthermore, we solve two extra problems caused by the combination of Java and CUDA. First, CUDA-capable hardware usually has little memory (compared to main memory). However, as Java is a pointer-free language, array data can be stored in main memory and buffered in GPU memory. Second, CUDA requires one to copy data to and from the graphics card's memory explicitly. As modern languages use many small objects, this would involve many copy operations when done naively. This is exacerbated because Java uses arrays-of-arrays to implement multi-dimensional arrays. A clever copying technique and two new array packages allow for more efficient use of CUDA.}, + comment = {a java framework for runtime code generation for cuda graphics cards}, + doi = {10.1145/1808954.1808959}, + isbn = {9781605589640}, + location = {Cape Town, South Africa}, + numpages = {8}, + url = {https://doi.org/10.1145/1808954.1808959}, +} + +@InProceedings{rootbeer, + author = {P. C. {Pratt-Szeliga} and J. W. {Fawcett} and R. D. {Welch}}, + title = {Rootbeer: Seamlessly Using GPUs from Java}, + booktitle = {2012 IEEE 14th International Conference on High Performance Computing and Communication 2012 IEEE 9th International Conference on Embedded Software and Systems}, + year = {2012}, + pages = {375-380}, + month = {June}, + abstract = {When converting a serial program to a parallel program that can run on a Graphics Processing Unit (GPU) the developer must choose what functions will run on the GPU. For each function the developer chooses, he or she needs to manually write code to: (1) serialize state to GPU memory, (2) define the kernel code that the GPU will execute, (3) control the kernel launch and (4) deserialize state back to CPU memory. Rootbeer is a project that allows developers to simply write code in Java and the (de)serialization, kernel code generation and kernel launch is done automatically. This is in contrast to Java language bindings for CUDA or OpenCL where the developer still has to do these things manually. Rootbeer supports all features of the Java Programming Language except dynamic method invocation, reflection and native methods. The features that are supported are: (1) single and multi-dimensional arrays of primitive and reference types, (2) composite objects, (3) instance and static fields, (4) dynamic memory allocation, (5) inner classes, (6) synchronized methods and monitors, (7) strings and (8) exceptions that are thrown or caught on the GPU. Rootbeer is the most full-featured tool to enable GPU computing from within Java to date. Rootbeer is highly tested. We have 21k lines of product code and 6.5k lines of test cases that all pass on both Windows and Linux. We have created 3 performance example applications with results ranging from 3X slow-downs to 100X speed-ups. Rootbeer is free and open-source software licensed under the GNU General Public License version 3 (GPLv3).}, + comment = {rootbeer is an open source project which aims to automatically run java code on the gpu by automatic code generation of cuda code}, + doi = {10.1109/HPCC.2012.57}, + issn = {null}, + keywords = {graphics processing units;Java;Linux;operating system kernels;parallel architectures;parallel programming;program compilers;public domain software;user interfaces;serial program;parallel program;graphics processing unit;GPU memory;CPU memory;Rootbeer project;deserialization;kernel code generation;kernel launch;CUDA;OpenCL;Java programming language;dynamic method invocation;reflection methods;native methods;primitive-type multidimensional arrays;primitive-type single-dimensional arrays;reference-type single-dimensional arrays;reference-type multidimensional arrays;composite objects;instance fields;static fields;dynamic memory allocation;inner classes;Windows;Linux;free software;open-source software;GNU General Public License version 3;GPLv3;Graphics processing unit;Java;Kernel;Arrays;Runtime;Indexes;Parallel processing;GPGPU;Java;Compilers}, +} + +@InProceedings{eval_of_java_for_gpgpu, + author = {J. {Docampo} and S. {Ramos} and G. L. {Taboada} and R. R. {Expósito} and J. {Touriño} and R. {Doallo}}, + title = {Evaluation of Java for General Purpose GPU Computing}, + booktitle = {2013 27th International Conference on Advanced Information Networking and Applications Workshops}, + year = {2013}, + pages = {1398-1404}, + month = {March}, + abstract = {The presence of many-core units as accelerators has been increasing due to their ability to improve the performance of highly parallel workloads. General Purpose GPU(GPGPU) computing has allowed the graphical units to emerge as successful co-processors that can be employed to improve the performance of many different non-graphical applications with high parallel requirements, which make them suitable for many High Performance Computing workloads. While the main libraries developed to exploit the massive parallel capacity of GPUs are oriented to C/C++ programmers, there have been several efforts to extend this support to other languages. Among them, Java stands out for being one of the most extended languages and there are multiple projects that try to enable Java to take advantage of GPGPU computing. In this scenario, this paper presents an evaluation of the most relevant among the current solutions that exploit GPGPU computing in Java.}, + comment = {description and evaluation of different frameworks to use gpgpus (General Purpose GPUs) with Java}, + doi = {10.1109/WAINA.2013.234}, + issn = {null}, + keywords = {graphics processing units;Java;parallel processing;Java;general purpose GPU computing;many-core units;accelerator;parallel workload;GPGPU computing;graphical unit;coprocessor;high performance computing;C/C++;Java;Graphics processing units;Kernel;Libraries;Runtime;Programming;Standards;Java;General Purpose GPU computing (GPGPU);jCuda;Aparapi;High Performance Computing}, +} + +@InProceedings{compiling_and_optimizing_java8, + author = {K. {Ishizaki} and A. {Hayashi} and G. {Koblents} and V. {Sarkar}}, + title = {Compiling and Optimizing Java 8 Programs for GPU Execution}, + booktitle = {2015 International Conference on Parallel Architecture and Compilation (PACT)}, + year = {2015}, + pages = {419-431}, + month = {Oct}, + abstract = {GPUs can enable significant performance improvements for certain classes of data parallel applications and are widely used in recent computer systems. However, GPU execution currently requires explicit low-level operations such as 1) managing memory allocations and transfers between the host system and the GPU, 2) writing GPU kernels in a low-level programming model such as CUDA or OpenCL, and 3) optimizing the kernels by utilizing appropriate memory types on the GPU. Because of this complexity, in many cases, only expert programmers can exploit the computational capabilities of GPUs through the CUDA/OpenCL languages. This is unfortunate since a large number of programmers use high-level languages, such as Java, due to their advantages of productivity, safety, and platform portability, but would still like to exploit the performance benefits of GPUs. Thus, one challenging problem is how to utilize GPUs while allowing programmers to continue to benefit from the productivity advantages of languages like Java. This paper presents a just-in-time (JIT) compiler that can generate and optimize GPU code from a pure Java program written using lambda expressions with the new parallel streams APIs in Java 8. These APIs allow Java programmers to express data parallelism at a higher level than threads and tasks. Our approach translates lambda expressions with parallel streams APIs in Java 8 into GPU code and automatically generates runtime calls that handle the low-level operations mentioned above. Additionally, our optimization techniques 1) allocate and align the starting address of the Java array body in the GPUs with the memory transaction boundary to increase memory bandwidth, 2) utilize read-only cache for array accesses to increase memory efficiency in GPUs, and 3) eliminate redundant data transfer between the host and the GPU. The compiler also performs loop versioning for eliminating redundant exception checks and for supporting virtual method invocations within GPU kernels. These features and optimizations are supported and automatically performed by a JIT compiler that is built on top of a production version of the IBM Java 8 runtime environment. Our experimental results on an NVIDIA Tesla GPU show significant performance improvements over sequential execution (127.9 × geometric mean) and parallel execution (3.3 × geometric mean) for eight Java 8 benchmark programs running on a 160-thread POWER8 machine. This paper also includes an in-depth analysis of GPU execution to show the impact of our optimization techniques by selectively disabling each optimization. Our experimental results show a geometric-mean speed-up of 1.15 × in the GPU kernel over state-of-the-art approaches. Overall, our JIT compiler can improve the performance of Java 8 programs by automatically leveraging the computational capability of GPUs.}, + comment = {a java-8 JIT compiler to make use of the streaming api. Streams are then executed on the gpu instead of using different threads}, + doi = {10.1109/PACT.2015.46}, + issn = {1089-795X}, + keywords = {application program interfaces;cache storage;configuration management;graphics processing units;Java;parallel processing;program compilers;Java 8 programs;GPU execution;data parallel applications;CUDA/OpenCL languages;Java language;just-in-time compiler;JIT compiler;GPU code optimization;lambda expressions;parallel streams API;data parallelism;memory transaction boundary;memory bandwidth;read-only cache;memory efficiency;loop versioning;virtual method invocations;GPU kernels;IBM Java 8 runtime environment;NVIDIA Tesla GPU;thread POWER8 machine;graphics processing unit;Graphics processing units;Java;Optimization;Kernel;Arrays;Semantics;JIT compiler;GPU;Java 8;Parallel streams}, +} + +@InProceedings{jcuda, + author = {Yan, Yonghong and Grossman, Max and Sarkar, Vivek}, + title = {JCUDA: A Programmer-Friendly Interface for Accelerating Java Programs with CUDA}, + booktitle = {Euro-Par 2009 Parallel Processing}, + year = {2009}, + editor = {Sips, Henk and Epema, Dick and Lin, Hai-Xiang}, + pages = {887--899}, + address = {Berlin, Heidelberg}, + publisher = {Springer Berlin Heidelberg}, + abstract = {A recent trend in mainstream desktop systems is the use of general-purpose graphics processor units (GPGPUs) to obtain order-of-magnitude performance improvements. CUDA has emerged as a popular programming model for GPGPUs for use by C/C++ programmers. Given the widespread use of modern object-oriented languages with managed runtimes like Java and C{\#}, it is natural to explore how CUDA-like capabilities can be made accessible to those programmers as well. In this paper, we present a programming interface called JCUDA that can be used by Java programmers to invoke CUDA kernels. Using this interface, programmers can write Java codes that directly call CUDA kernels, and delegate the responsibility of generating the Java-CUDA bridge codes and host-device data transfer calls to the compiler. Our preliminary performance results show that this interface can deliver significant performance improvements to Java programmers. For future work, we plan to use the JCUDA interface as a target language for supporting higher level parallel programming languages like X10 and Habanero-Java.}, + comment = {a programming interface to make use of cuda in java}, + isbn = {978-3-642-03869-3}, +} + +@InProceedings{parallel_java, + author = {Kaminsky, Alan}, + title = {Parallel Java 2 Library}, + booktitle = {The International Conference for high performance computing, networking, storage and analysis}, + year = {2014}, + abstract = {The Parallel Java 2 Library (PJ2) is an API andmiddleware for parallel programming in 100% Java onmulticore parallel computers, cluster parallel computers, andhybrid multicore cluster parallel computers. In addition, PJ2supports programming GPU accelerated parallel computers,with main programs written in Java and GPU kernels writtenusing Nvidia’s CUDA. PJ2 also includes a lightweight map-reduce framework for big data parallel programming. PJ2 has itsown job scheduling middleware that coordinates usage of anode’s or cluster’s computational resources by multiple users.Encompassing four major categories of parallel programming—multicore, cluster, GPU, and map-reduce—in a single unifiedJava-based API, PJ2 is suitable for teaching and learning parallelprogramming and for real world parallel program developmen}, + comment = {a library to use parallel execution (mulitcore processors, gpu, etc... ) in Java}, +} + +@InProceedings{air_swipe_gesture_recognition_using_opencv, + author = {T. {Sharma} and S. {Kumar} and N. {Yadav} and K. {Sharma} and P. {Bhardwaj}}, + title = {Air-swipe gesture recognition using OpenCV in Android devices}, + booktitle = {2017 International Conference on Algorithms, Methodology, Models and Applications in Emerging Technologies (ICAMMAET)}, + year = {2017}, + pages = {1-6}, + month = {Feb}, + abstract = {There is a need to enhance communication between human and computers which is being greatly defined in this changing era of technology with Human Computer Interaction (HCI) which is helping in determining new communication models and accordingly new ways of interacting with machines. Current smartphone inputs are limited to physical buttons, touchscreen input, cameras or built-in sensors. The rapid development of Smartphone's in the last decade was mainly due to interaction and visual innovations. For Example the given approaches of input either require a dedicated surface or Line-of-Sight for interaction. But in today's scenario of increasing computability of smartphone or other gadgets and their decreasing sizes have raised a need for such touch free operations over these gadgets. In such an intendment we introduce Air-Swipe Gesture Recognition System which can be useful to enable user to make In-Air gestures in front of the camera and to do different operations. This System can give a user-friendly and a live-experience of interaction and visualization, enhancing the usability and making the android device more interactive. It does not require any hardware changes instead only uses the native camera of the device and a machine learning software such as Open Source Computer Vision (OpenCV) algorithms to detect the changes in environment and respond accordingly in varying conditions. We tested this classification and found out the result that considering the frames to be divided into quadrants along x-axis and y-axis and found that the value of the frame matrix changes. Our approach has the capability of recognizing gestures with precision of almost 96%.}, + comment = {opencv gesture recogntion using jni}, + doi = {10.1109/ICAMMAET.2017.8186632}, + issn = {null}, + keywords = {gesture recognition;human computer interaction;image colour analysis;learning (artificial intelligence);smart phones;OpenCV;Android devices;Human Computer Interaction;HCI;communication models;touchscreen input;visual innovations;dedicated surface;touch free operations;Air-Swipe Gesture Recognition System;In-Air gestures;android device;native camera;machine learning software;Open Source Computer Vision algorithms;frame matrix changes;Cameras;Gesture recognition;Computer vision;Androids;Humanoid robots;Performance evaluation;Smart phones;Air-Swipe Gesture Recognition;Android;OpenCV;HCI;mobile interaction;computer vision}, +} + @Comment{jabref-meta: databaseType:bibtex;} diff --git a/related work/java_gpu/Compiling and Optimizing Java 8 Programs for GPU Execution.pdf b/related work/java_gpu/Compiling and Optimizing Java 8 Programs for GPU Execution.pdf new file mode 100644 index 0000000..1debf66 Binary files /dev/null and b/related work/java_gpu/Compiling and Optimizing Java 8 Programs for GPU Execution.pdf differ diff --git a/related work/java_gpu/Evaluation of Java for General Purpose GPU Computing.pdf b/related work/java_gpu/Evaluation of Java for General Purpose GPU Computing.pdf new file mode 100644 index 0000000..ebb1786 Binary files /dev/null and b/related work/java_gpu/Evaluation of Java for General Purpose GPU Computing.pdf differ diff --git a/related work/java_gpu/JCUDA A Programmer-Friendly Interface for Accelerating Java Programs with CUDA.pdf b/related work/java_gpu/JCUDA A Programmer-Friendly Interface for Accelerating Java Programs with CUDA.pdf new file mode 100644 index 0000000..840508f Binary files /dev/null and b/related work/java_gpu/JCUDA A Programmer-Friendly Interface for Accelerating Java Programs with CUDA.pdf differ diff --git a/related work/java_gpu/JCudaMP OpenMPJava on CUDA.pdf b/related work/java_gpu/JCudaMP OpenMPJava on CUDA.pdf new file mode 100644 index 0000000..a221f94 Binary files /dev/null and b/related work/java_gpu/JCudaMP OpenMPJava on CUDA.pdf differ diff --git a/related work/java_gpu/Rootbeer Seamlessly using GPUs from Java.pdf b/related work/java_gpu/Rootbeer Seamlessly using GPUs from Java.pdf new file mode 100644 index 0000000..27cd565 Binary files /dev/null and b/related work/java_gpu/Rootbeer Seamlessly using GPUs from Java.pdf differ diff --git a/related work/java_gpu/the parallel java 2 library.pdf b/related work/java_gpu/the parallel java 2 library.pdf new file mode 100644 index 0000000..c0d8213 Binary files /dev/null and b/related work/java_gpu/the parallel java 2 library.pdf differ diff --git a/related work/opencv_java/Air-Swipe Gesture Recognition Using OpenCV in Android Devices.pdf b/related work/opencv_java/Air-Swipe Gesture Recognition Using OpenCV in Android Devices.pdf new file mode 100644 index 0000000..d9264cf Binary files /dev/null and b/related work/opencv_java/Air-Swipe Gesture Recognition Using OpenCV in Android Devices.pdf differ diff --git a/related work/other/A brief introduction to OpenCV.pdf b/related work/other/A brief introduction to OpenCV.pdf new file mode 100644 index 0000000..37df695 Binary files /dev/null and b/related work/other/A brief introduction to OpenCV.pdf differ