From 040b4b713bbc819aa539d2aa1a2985bb59659a06 Mon Sep 17 00:00:00 2001 From: Darrell Ross Date: Sun, 29 Jan 2017 17:04:48 -0800 Subject: [PATCH] Updates to KDF session configurations for Homework 3. --- .../elementwiseMatrixPower.cbsession | 22 ++++++------ .../elementwiseMatrixPower.xml | 36 +++++++++++++++++++ .../elementwiseMatrixPower_Manual.cbsession | 22 ++++++------ .../elementwiseMatrixPower_Manual.xml | 36 +++++++++++++++++++ .../progressiveArraySum.cbsession | 20 +++++------ .../progressiveArraySum.xml | 36 +++++++++++++++++++ 6 files changed, 140 insertions(+), 32 deletions(-) diff --git a/ocl_kd_sessions/elementwiseMatrixPower/elementwiseMatrixPower.cbsession b/ocl_kd_sessions/elementwiseMatrixPower/elementwiseMatrixPower.cbsession index 88fe020..5436060 100644 --- a/ocl_kd_sessions/elementwiseMatrixPower/elementwiseMatrixPower.cbsession +++ b/ocl_kd_sessions/elementwiseMatrixPower/elementwiseMatrixPower.cbsession @@ -4,21 +4,21 @@ ActiveTab=elementwiseMatrixPower [KBSession] KBTabs\2\TabFile=elementwiseMatrixPower KBTabs\2\TabName=elementwiseMatrixPower -KBTabs\2\KBCache= -KBTabs\2\KBVarsByKernel= -KBTabs\2\KBRefsByKernel= -KBTabs\2\KBGroupSizes= -KBTabs\2\KBIterations= -KBTabs\2\KBConfigurationNames= +KBTabs\2\KBCache="&elementwiseMatrixPower$pA;K;pB$float*;uint;float*$__global;__private;__global$NONE;NONE;NONE" +KBTabs\2\KBVarsByKernel="elementwiseMatrixPower#pA&0&buffer_A;K&3&4;pB&0&buffer_B" +KBTabs\2\KBRefsByKernel="elementwiseMatrixPower#pA&;K&;pB&" +KBTabs\2\KBGroupSizes=512#512#0#Auto#Auto#0 +KBTabs\2\KBIterations=20 +KBTabs\2\KBConfigurationNames=config_0 KBTabs\2\KBWorkFlows= KBTabs\2\KBWorkFlowsSetting= -KBTabs\2\KBSelectedKernel= -KBTabs\2\TabCode= +KBTabs\2\KBSelectedKernel=elementwiseMatrixPower +KBTabs\2\TabCode="\r\n__kernel void elementwiseMatrixPower(__global float* pA, unsigned int K, __global float* pB)\r\n{\r\n const int x = get_global_id(0);\r\n const int y = get_global_id(1);\r\n const int width = get_global_size(0);\r\n\r\n const int id = y * width + x;\r\n\tfloat input = pA[id];\r\n\tfloat output = pow(input, K);\r\n\tpB[id] = output;\r\n}\r\n" KBTabs\2\KBFacadeVisible=true KBTabs\2\IsValidation=false -KBTabs\2\KBServerActive=false -KBTabs\2\Artifacts= -KBTabs\2\Reports= +KBTabs\2\KBServerActive=true +KBTabs\2\Artifacts="D:\\Development\\uwEE590\\ocl_kd_sessions\\elementwiseMatrixPower\\program.ir;D:\\Development\\uwEE590\\ocl_kd_sessions\\elementwiseMatrixPower\\program_elementwiseMatrixPower.gen;D:\\Development\\uwEE590\\ocl_kd_sessions\\elementwiseMatrixPower\\program.ll;D:\\Development\\uwEE590\\ocl_kd_sessions\\elementwiseMatrixPower\\program_x64.ll;D:\\Development\\uwEE590\\ocl_kd_sessions\\elementwiseMatrixPower\\program_x64.spir;D:\\Development\\uwEE590\\ocl_kd_sessions\\elementwiseMatrixPower\\program_x86.ll;D:\\Development\\uwEE590\\ocl_kd_sessions\\elementwiseMatrixPower\\program_x86.spir;D:\\Development\\uwEE590\\ocl_kd_sessions\\elementwiseMatrixPower\\program_x86.spirv;D:\\Development\\uwEE590\\ocl_kd_sessions\\elementwiseMatrixPower\\program_x64.spirv;" +KBTabs\2\Reports=D:\\Development\\uwEE590\\ocl_kd_sessions\\elementwiseMatrixPower\\LastRunResults/elementwiseMatrixPower.cbreport KBTabs\2\CLFiles=D:\\Development\\uwEE590\\ocl_kd_sessions\\elementwiseMatrixPower\\program.cl KBTabs\2\IsBinary=false KBTabs\2\TabOpt6= diff --git a/ocl_kd_sessions/elementwiseMatrixPower/elementwiseMatrixPower.xml b/ocl_kd_sessions/elementwiseMatrixPower/elementwiseMatrixPower.xml index e69de29..1b733c7 100644 --- a/ocl_kd_sessions/elementwiseMatrixPower/elementwiseMatrixPower.xml +++ b/ocl_kd_sessions/elementwiseMatrixPower/elementwiseMatrixPower.xml @@ -0,0 +1,36 @@ + + + + + buffer_A + float + CL_MEM_USE_HOST_PTR + READ_ONLY + 0 + D:\Development\uwEE590\ocl_kd_sessions\elementwiseMatrixPower\bin_buffer_A.bin + true + 262144 + true + false + false + + + buffer_B + float + CL_MEM_USE_HOST_PTR + READ_ONLY + 1 + + true + 262144 + false + false + false + + + + + + + + diff --git a/ocl_kd_sessions/elementwiseMatrixPower_Manual/elementwiseMatrixPower_Manual.cbsession b/ocl_kd_sessions/elementwiseMatrixPower_Manual/elementwiseMatrixPower_Manual.cbsession index a07354a..399eb9f 100644 --- a/ocl_kd_sessions/elementwiseMatrixPower_Manual/elementwiseMatrixPower_Manual.cbsession +++ b/ocl_kd_sessions/elementwiseMatrixPower_Manual/elementwiseMatrixPower_Manual.cbsession @@ -4,21 +4,21 @@ ActiveTab=elementwiseMatrixPower_Manual [KBSession] KBTabs\2\TabFile=elementwiseMatrixPower_Manual KBTabs\2\TabName=elementwiseMatrixPower_Manual -KBTabs\2\KBCache= -KBTabs\2\KBVarsByKernel= -KBTabs\2\KBRefsByKernel= -KBTabs\2\KBGroupSizes= -KBTabs\2\KBIterations= -KBTabs\2\KBConfigurationNames= +KBTabs\2\KBCache="&elementwiseMatrixPower_Manual$pA;K;pB$float*;uint;float*$__global;__private;__global$NONE;NONE;NONE" +KBTabs\2\KBVarsByKernel="elementwiseMatrixPower_Manual#pA&0&buffer_A;K&3&4;pB&0&buffer_B" +KBTabs\2\KBRefsByKernel="elementwiseMatrixPower_Manual#pA&;K&;pB&" +KBTabs\2\KBGroupSizes=512#512#0#Auto#Auto#0 +KBTabs\2\KBIterations=20 +KBTabs\2\KBConfigurationNames=config_0 KBTabs\2\KBWorkFlows= KBTabs\2\KBWorkFlowsSetting= -KBTabs\2\KBSelectedKernel= -KBTabs\2\TabCode= +KBTabs\2\KBSelectedKernel=elementwiseMatrixPower_Manual +KBTabs\2\TabCode="\r\n__kernel void elementwiseMatrixPower_Manual(__global float* pA, unsigned int K, __global float* pB)\r\n{\r\n const int x = get_global_id(0);\r\n const int y = get_global_id(1);\r\n const int width = get_global_size(0);\r\n\r\n const int id = y * width + x;\r\n\tfloat prod = pA[id];\r\n\tfloat out = 1.0;\r\n\tfor(unsigned int i=0; i + + + + buffer_A + float + CL_MEM_USE_HOST_PTR + READ_ONLY + 0 + D:\Development\uwEE590\ocl_kd_sessions\elementwiseMatrixPower_Manual\bin_buffer_A.bin + true + 262144 + true + false + false + + + buffer_B + float + CL_MEM_USE_HOST_PTR + READ_ONLY + 1 + + true + 262144 + false + false + false + + + + + + + + diff --git a/ocl_kd_sessions/progressiveArraySum/progressiveArraySum.cbsession b/ocl_kd_sessions/progressiveArraySum/progressiveArraySum.cbsession index bcd4d2c..09d0a3c 100644 --- a/ocl_kd_sessions/progressiveArraySum/progressiveArraySum.cbsession +++ b/ocl_kd_sessions/progressiveArraySum/progressiveArraySum.cbsession @@ -4,20 +4,20 @@ ActiveTab=progressiveArraySum [KBSession] KBTabs\2\TabFile=progressiveArraySum KBTabs\2\TabName=progressiveArraySum -KBTabs\2\KBCache= -KBTabs\2\KBVarsByKernel= -KBTabs\2\KBRefsByKernel= -KBTabs\2\KBGroupSizes= -KBTabs\2\KBIterations= -KBTabs\2\KBConfigurationNames= +KBTabs\2\KBCache="&progressiveArraySum$p1b_A;p1b_B$float*;float*$__global;__global$NONE;NONE" +KBTabs\2\KBVarsByKernel="progressiveArraySum#p1b_A&0&buffer_A;p1b_B&0&buffer_B" +KBTabs\2\KBRefsByKernel="progressiveArraySum#p1b_A&;p1b_B&" +KBTabs\2\KBGroupSizes=4096#0#0#Auto#0#0 +KBTabs\2\KBIterations=20 +KBTabs\2\KBConfigurationNames=config_0 KBTabs\2\KBWorkFlows= KBTabs\2\KBWorkFlowsSetting= -KBTabs\2\KBSelectedKernel= -KBTabs\2\TabCode= +KBTabs\2\KBSelectedKernel=progressiveArraySum +KBTabs\2\TabCode="\r\n__kernel void progressiveArraySum(__global float* p1b_A, __global float* p1b_B)\r\n{\r\n\tconst unsigned int id = get_global_id(0);\r\n\r\n\tfloat out = 0.0;\r\n\tfor(unsigned int i=0; i<=id; i++)\r\n\t\tout += p1b_A[i];\r\n\r\n\tp1b_B[id] = out;\r\n}\r\n" KBTabs\2\KBFacadeVisible=true KBTabs\2\IsValidation=false -KBTabs\2\KBServerActive=false -KBTabs\2\Artifacts= +KBTabs\2\KBServerActive=true +KBTabs\2\Artifacts="D:\\Development\\uwEE590\\ocl_kd_sessions\\progressiveArraySum\\program.ir;D:\\Development\\uwEE590\\ocl_kd_sessions\\progressiveArraySum\\program_progressiveArraySum.gen;D:\\Development\\uwEE590\\ocl_kd_sessions\\progressiveArraySum\\program.ll;D:\\Development\\uwEE590\\ocl_kd_sessions\\progressiveArraySum\\program_x64.ll;D:\\Development\\uwEE590\\ocl_kd_sessions\\progressiveArraySum\\program_x64.spir;D:\\Development\\uwEE590\\ocl_kd_sessions\\progressiveArraySum\\program_x86.ll;D:\\Development\\uwEE590\\ocl_kd_sessions\\progressiveArraySum\\program_x86.spir;D:\\Development\\uwEE590\\ocl_kd_sessions\\progressiveArraySum\\program_x86.spirv;D:\\Development\\uwEE590\\ocl_kd_sessions\\progressiveArraySum\\program_x64.spirv;D:\\Development\\uwEE590\\ocl_kd_sessions\\progressiveArraySum\\program_x86.txtspirv;D:\\Development\\uwEE590\\ocl_kd_sessions\\progressiveArraySum\\program_x64.txtspirv;" KBTabs\2\Reports= KBTabs\2\CLFiles=D:\\Development\\uwEE590\\ocl_kd_sessions\\progressiveArraySum\\program.cl KBTabs\2\IsBinary=false diff --git a/ocl_kd_sessions/progressiveArraySum/progressiveArraySum.xml b/ocl_kd_sessions/progressiveArraySum/progressiveArraySum.xml index e69de29..e1eb443 100644 --- a/ocl_kd_sessions/progressiveArraySum/progressiveArraySum.xml +++ b/ocl_kd_sessions/progressiveArraySum/progressiveArraySum.xml @@ -0,0 +1,36 @@ + + + + + buffer_A + float + CL_MEM_USE_HOST_PTR + READ_ONLY + 0 + D:\Development\uwEE590\ocl_kd_sessions\progressiveArraySum\bin_buffer_A.bin + true + 4096 + true + false + false + + + buffer_B + float + CL_MEM_USE_HOST_PTR + READ_ONLY + 1 + + true + 4096 + true + false + false + + + + + + + +