clProbDist
An OpenCL library for probability distributions
clProbDist.h
Go to the documentation of this file.
1 /*
2  * Authors:
3  *
4  * Nabil Kemerchou <kemerchn@iro.umontreal.ca> (2015)
5  * David Munger <mungerd@iro.umontreal.ca> (2015)
6  * Pierre L'Ecuyer <lecuyer@iro.umontreal.ca> (2015)
7  *
8  */
9 
811 #pragma once
812 #ifndef CLPROBDIST_H
813 #define CLPROBDIST_H
814 
815 #ifdef CLPROBDIST_SINGLE_PRECISION
816 #error "CLPROBDIST_SINGLE_PRECISION option not yet implemented"
817 #endif
818 
819 #if defined(__APPLE__) || defined(__MACOSX)
820 #include <OpenCL/cl.h>
821 #else
822 #include <CL/cl.h>
823 #endif
824 
825 #if defined ( WIN32 )
826 #define __func__ __FUNCTION__
827 #endif
828 
829 #define constant const
830 
843 typedef enum clprobdistStatus_ {
844  CLPROBDIST_SUCCESS = CL_SUCCESS,
845  CLPROBDIST_OUT_OF_RESOURCES = CL_OUT_OF_RESOURCES,
846  CLPROBDIST_INVALID_VALUE = CL_INVALID_VALUE,
847  /* ... */
848  CLPROBDIST_FUNCTION_NOT_IMPLEMENTED,
849  CLPROBDIST_ABSTRACT_FUNCTION
851 
852 #ifdef __cplusplus
853 extern "C" {
854 #endif
855 
863  const char* clprobdistGetErrorString();
864 
887  const char* clprobdistGetLibraryDeviceIncludes(cl_int* err);
888 
896  const char* clprobdistGetLibraryRoot();
897 
898 #ifdef __cplusplus
899 }
900 #endif
901 
902 #endif /* CLPROBDIST_H */
903 
904 /*
905 * vim: syntax=c.doxygen spell spelllang=en fdm=syntax fdls=0 expandtab
906 */
enum clprobdistStatus_ clprobdistStatus
Error codes.
const char * clprobdistGetLibraryRoot()
Retrieve the library installation path.
const char * clprobdistGetLibraryDeviceIncludes(cl_int *err)
Generate an include option string for use with the OpenCL C compiler.
const char * clprobdistGetErrorString()
Retrieve the last error message.