Skip to content

Commit

Permalink
Updates to KDF session configurations for Homework 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
eukota committed Jan 30, 2017
1 parent a2f07c4 commit 040b4b7
Show file tree
Hide file tree
Showing 6 changed files with 140 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
36 changes: 36 additions & 0 deletions ocl_kd_sessions/elementwiseMatrixPower/elementwiseMatrixPower.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Kernel Builder Variables Database -->
<KernelBuilderBuffers>
<BufferDetails>
<Name>buffer_A</Name>
<DataType>float</DataType>
<MemoryFlags>CL_MEM_USE_HOST_PTR</MemoryFlags>
<AccessQualifier>READ_ONLY</AccessQualifier>
<I_O_Mode>0</I_O_Mode>
<Source>D:\Development\uwEE590\ocl_kd_sessions\elementwiseMatrixPower\bin_buffer_A.bin</Source>
<ReadOutput>true</ReadOutput>
<BufferSize>262144</BufferSize>
<InitByRandom>true</InitByRandom>
<InitByZero>false</InitByZero>
<UseAsSVM>false</UseAsSVM>
</BufferDetails>
<BufferDetails>
<Name>buffer_B</Name>
<DataType>float</DataType>
<MemoryFlags>CL_MEM_USE_HOST_PTR</MemoryFlags>
<AccessQualifier>READ_ONLY</AccessQualifier>
<I_O_Mode>1</I_O_Mode>
<Source></Source>
<ReadOutput>true</ReadOutput>
<BufferSize>262144</BufferSize>
<InitByRandom>false</InitByRandom>
<InitByZero>false</InitByZero>
<UseAsSVM>false</UseAsSVM>
</BufferDetails>
</KernelBuilderBuffers>

<KernelBuilderImages/>

<KernelBuilderSamplers/>

<KernelBuilderPipes/>
Original file line number Diff line number Diff line change
Expand Up @@ -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<K; i++)\r\n\t\tout = out*prod;\r\n\tpB[id] = out;\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_Manual\\program.ir;D:\\Development\\uwEE590\\ocl_kd_sessions\\elementwiseMatrixPower_Manual\\program_elementwiseMatrixPower_Manual.gen;D:\\Development\\uwEE590\\ocl_kd_sessions\\elementwiseMatrixPower_Manual\\program.ll;D:\\Development\\uwEE590\\ocl_kd_sessions\\elementwiseMatrixPower_Manual\\program_x64.ll;D:\\Development\\uwEE590\\ocl_kd_sessions\\elementwiseMatrixPower_Manual\\program_x64.spir;D:\\Development\\uwEE590\\ocl_kd_sessions\\elementwiseMatrixPower_Manual\\program_x86.ll;D:\\Development\\uwEE590\\ocl_kd_sessions\\elementwiseMatrixPower_Manual\\program_x86.spir;D:\\Development\\uwEE590\\ocl_kd_sessions\\elementwiseMatrixPower_Manual\\program_x86.spirv;D:\\Development\\uwEE590\\ocl_kd_sessions\\elementwiseMatrixPower_Manual\\program_x64.spirv;D:\\Development\\uwEE590\\ocl_kd_sessions\\elementwiseMatrixPower_Manual\\program_x86.txtspirv;D:\\Development\\uwEE590\\ocl_kd_sessions\\elementwiseMatrixPower_Manual\\program_x64.txtspirv;"
KBTabs\2\Reports=D:\\Development\\uwEE590\\ocl_kd_sessions\\elementwiseMatrixPower_Manual\\LastRunResults/elementwiseMatrixPower_Manual.cbreport
KBTabs\2\CLFiles=D:\\Development\\uwEE590\\ocl_kd_sessions\\elementwiseMatrixPower_Manual\\program.cl
KBTabs\2\IsBinary=false
KBTabs\2\TabOpt6=
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Kernel Builder Variables Database -->
<KernelBuilderBuffers>
<BufferDetails>
<Name>buffer_A</Name>
<DataType>float</DataType>
<MemoryFlags>CL_MEM_USE_HOST_PTR</MemoryFlags>
<AccessQualifier>READ_ONLY</AccessQualifier>
<I_O_Mode>0</I_O_Mode>
<Source>D:\Development\uwEE590\ocl_kd_sessions\elementwiseMatrixPower_Manual\bin_buffer_A.bin</Source>
<ReadOutput>true</ReadOutput>
<BufferSize>262144</BufferSize>
<InitByRandom>true</InitByRandom>
<InitByZero>false</InitByZero>
<UseAsSVM>false</UseAsSVM>
</BufferDetails>
<BufferDetails>
<Name>buffer_B</Name>
<DataType>float</DataType>
<MemoryFlags>CL_MEM_USE_HOST_PTR</MemoryFlags>
<AccessQualifier>READ_ONLY</AccessQualifier>
<I_O_Mode>1</I_O_Mode>
<Source></Source>
<ReadOutput>true</ReadOutput>
<BufferSize>262144</BufferSize>
<InitByRandom>false</InitByRandom>
<InitByZero>false</InitByZero>
<UseAsSVM>false</UseAsSVM>
</BufferDetails>
</KernelBuilderBuffers>

<KernelBuilderImages/>

<KernelBuilderSamplers/>

<KernelBuilderPipes/>
20 changes: 10 additions & 10 deletions ocl_kd_sessions/progressiveArraySum/progressiveArraySum.cbsession
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
36 changes: 36 additions & 0 deletions ocl_kd_sessions/progressiveArraySum/progressiveArraySum.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Kernel Builder Variables Database -->
<KernelBuilderBuffers>
<BufferDetails>
<Name>buffer_A</Name>
<DataType>float</DataType>
<MemoryFlags>CL_MEM_USE_HOST_PTR</MemoryFlags>
<AccessQualifier>READ_ONLY</AccessQualifier>
<I_O_Mode>0</I_O_Mode>
<Source>D:\Development\uwEE590\ocl_kd_sessions\progressiveArraySum\bin_buffer_A.bin</Source>
<ReadOutput>true</ReadOutput>
<BufferSize>4096</BufferSize>
<InitByRandom>true</InitByRandom>
<InitByZero>false</InitByZero>
<UseAsSVM>false</UseAsSVM>
</BufferDetails>
<BufferDetails>
<Name>buffer_B</Name>
<DataType>float</DataType>
<MemoryFlags>CL_MEM_USE_HOST_PTR</MemoryFlags>
<AccessQualifier>READ_ONLY</AccessQualifier>
<I_O_Mode>1</I_O_Mode>
<Source></Source>
<ReadOutput>true</ReadOutput>
<BufferSize>4096</BufferSize>
<InitByRandom>true</InitByRandom>
<InitByZero>false</InitByZero>
<UseAsSVM>false</UseAsSVM>
</BufferDetails>
</KernelBuilderBuffers>

<KernelBuilderImages/>

<KernelBuilderSamplers/>

<KernelBuilderPipes/>

0 comments on commit 040b4b7

Please sign in to comment.