VectorHypot Changes
This commit is contained in:
committed by
GitHub Enterprise
parent
6f26b68760
commit
a970867b7b
@@ -313,7 +313,7 @@ int main(int argc, const char **argv)
|
|||||||
|
|
||||||
// Ethan - Kernel Addition
|
// Ethan - Kernel Addition
|
||||||
cl_program program =
|
cl_program program =
|
||||||
clCreateProgramWithBuiltInKernels(context, 1, &device_id, "sgemm", NULL);
|
clCreateProgramWithBuiltInKernels(context, 1, &device_id, "VectorHypot", NULL);
|
||||||
if (program == NULL) {
|
if (program == NULL) {
|
||||||
std::cerr << "Failed to write program binary" << std::endl;
|
std::cerr << "Failed to write program binary" << std::endl;
|
||||||
Cleanup(context, queue, program, kernel, memObjects);
|
Cleanup(context, queue, program, kernel, memObjects);
|
||||||
@@ -323,9 +323,9 @@ int main(int argc, const char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create the kernel
|
// Create the kernel
|
||||||
ckKernel[0] = clCreateKernel(cpProgram, "VectorHypot", &ciErrNum);
|
ckKernel[0] = clCreateKernel(cl_Program, "VectorHypot", &ciErrNum);
|
||||||
//oclCheckErrorEX(ciErrNum, CL_SUCCESS, pCleanup);
|
//oclCheckErrorEX(ciErrNum, CL_SUCCESS, pCleanup);
|
||||||
ckKernel[1] = clCreateKernel(cpProgram, "VectorHypot", &ciErrNum);
|
ckKernel[1] = clCreateKernel(cl_Program, "VectorHypot", &ciErrNum);
|
||||||
//oclCheckErrorEX(ciErrNum, CL_SUCCESS, pCleanup);
|
//oclCheckErrorEX(ciErrNum, CL_SUCCESS, pCleanup);
|
||||||
shrLog("clCreateKernel (ckKernel[2])...\n");
|
shrLog("clCreateKernel (ckKernel[2])...\n");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user