Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MIVisionX OCL build compatibility resolution #72

Merged
merged 1 commit into from
Sep 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 18 additions & 12 deletions include/rppdefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ extern "C" {
#include <CL/cl.h>
#endif

#define RPP_MIN_8U ( 0 )
#define RPP_MAX_8U ( 255 )
#define RPP_MIN_16U ( 0 )
#define RPP_MAX_16U ( 65535 )



Expand Down Expand Up @@ -382,6 +386,19 @@ typedef struct
cl_mem dstInc;
} memGPU;

typedef struct
{
memCPU mcpu;
memGPU mgpu;
} memMgmt;

typedef struct
{
RppPtr_t cpuHandle;
Rpp32u nbatchSize;
memMgmt mem;
} InitHandle;




Expand Down Expand Up @@ -458,14 +475,6 @@ typedef struct
Rpp32u* dstInc;
} memGPU;

#endif //BACKEND





/******************** Memory management and handle typedefs ********************/

typedef struct
{
memCPU mcpu;
Expand All @@ -479,10 +488,7 @@ typedef struct
memMgmt mem;
} InitHandle;

#define RPP_MIN_8U ( 0 )
#define RPP_MAX_8U ( 255 )
#define RPP_MIN_16U ( 0 )
#define RPP_MAX_16U ( 65535 )
#endif //BACKEND

#ifdef __cplusplus
}
Expand Down