|
@@ -70,7 +70,7 @@ cl_context CreateContext()
|
|
|
cl_context_properties contextProperties[] =
|
|
|
{
|
|
|
CL_CONTEXT_PLATFORM,
|
|
|
- (cl_context_properties)platformIds[1],
|
|
|
+ (cl_context_properties)platformIds[0],
|
|
|
0
|
|
|
};
|
|
|
context = clCreateContextFromType(contextProperties, CL_DEVICE_TYPE_GPU,
|
|
@@ -831,7 +831,7 @@ void processDWT(struct dwt *d, int forward, int writeVisual)
|
|
|
int main(int argc, char **argv)
|
|
|
{
|
|
|
int optindex = 0;
|
|
|
- char ch;
|
|
|
+ signed char ch;
|
|
|
struct option longopts[] =
|
|
|
{
|
|
|
{"dimension", required_argument, 0, 'd'}, //dimensions of src img
|