chore: delivery preparation
This commit is contained in:
@@ -87,7 +87,7 @@ Designed by <a href="https://github.com/cpptest/cpptest">CppTest</a>
|
||||
<td style="width:30%" class="tablecell_success">0</td>
|
||||
<td style="width:30%" class="tablecell_success">0</td>
|
||||
<td style="width:30%" class="tablecell_success">100%</td>
|
||||
<td style="width:10%" class="tablecell_success">1.000000</td>
|
||||
<td style="width:10%" class="tablecell_success">0.000000</td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr />
|
||||
@@ -106,7 +106,7 @@ Designed by <a href="https://github.com/cpptest/cpptest">CppTest</a>
|
||||
<td style="width:10%" class="tablecell_success">10</td>
|
||||
<td style="width:10%" class="tablecell_success">0</td>
|
||||
<td style="width:10%" class="tablecell_success">100%</td>
|
||||
<td style="width:10%" class="tablecell_success">1.000000</td>
|
||||
<td style="width:10%" class="tablecell_success">0.000000</td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr />
|
||||
@@ -123,7 +123,7 @@ Designed by <a href="https://github.com/cpptest/cpptest">CppTest</a>
|
||||
<td class="tablecell_success">testDB2</td>
|
||||
<td class="tablecell_success">0</td>
|
||||
<td class="tablecell_success">true</td>
|
||||
<td class="tablecell_success">1.000000</td>
|
||||
<td class="tablecell_success">0.000000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tablecell_success">testDB4</td>
|
||||
|
||||
@@ -87,7 +87,7 @@ Designed by <a href="https://github.com/cpptest/cpptest">CppTest</a>
|
||||
<td style="width:30%" class="tablecell_success">1</td>
|
||||
<td style="width:30%" class="tablecell_success">0</td>
|
||||
<td style="width:30%" class="tablecell_success">100%</td>
|
||||
<td style="width:10%" class="tablecell_success">10.000000</td>
|
||||
<td style="width:10%" class="tablecell_success">15.000000</td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr />
|
||||
@@ -106,7 +106,7 @@ Designed by <a href="https://github.com/cpptest/cpptest">CppTest</a>
|
||||
<td style="width:10%" class="tablecell_success">1</td>
|
||||
<td style="width:10%" class="tablecell_success">0</td>
|
||||
<td style="width:10%" class="tablecell_success">100%</td>
|
||||
<td style="width:10%" class="tablecell_success">10.000000</td>
|
||||
<td style="width:10%" class="tablecell_success">15.000000</td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr />
|
||||
@@ -123,7 +123,7 @@ Designed by <a href="https://github.com/cpptest/cpptest">CppTest</a>
|
||||
<td class="tablecell_success">performanceOnly</td>
|
||||
<td class="tablecell_success">0</td>
|
||||
<td class="tablecell_success">true</td>
|
||||
<td class="tablecell_success">10.000000</td>
|
||||
<td class="tablecell_success">15.000000</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p class="spaced"><a href="#top">Back to top</a>
|
||||
|
||||
@@ -87,7 +87,7 @@ Designed by <a href="https://github.com/cpptest/cpptest">CppTest</a>
|
||||
<td style="width:30%" class="tablecell_success">0</td>
|
||||
<td style="width:30%" class="tablecell_success">0</td>
|
||||
<td style="width:30%" class="tablecell_success">100%</td>
|
||||
<td style="width:10%" class="tablecell_success">0.000000</td>
|
||||
<td style="width:10%" class="tablecell_success">1.000000</td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr />
|
||||
@@ -106,7 +106,7 @@ Designed by <a href="https://github.com/cpptest/cpptest">CppTest</a>
|
||||
<td style="width:10%" class="tablecell_success">13</td>
|
||||
<td style="width:10%" class="tablecell_success">0</td>
|
||||
<td style="width:10%" class="tablecell_success">100%</td>
|
||||
<td style="width:10%" class="tablecell_success">0.000000</td>
|
||||
<td style="width:10%" class="tablecell_success">1.000000</td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr />
|
||||
@@ -189,7 +189,7 @@ Designed by <a href="https://github.com/cpptest/cpptest">CppTest</a>
|
||||
<td class="tablecell_success">testMonoBlock</td>
|
||||
<td class="tablecell_success">0</td>
|
||||
<td class="tablecell_success">true</td>
|
||||
<td class="tablecell_success">0.000000</td>
|
||||
<td class="tablecell_success">1.000000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tablecell_success">testSpecialeMax</td>
|
||||
|
||||
@@ -87,7 +87,7 @@ Designed by <a href="https://github.com/cpptest/cpptest">CppTest</a>
|
||||
<td style="width:30%" class="tablecell_success">0</td>
|
||||
<td style="width:30%" class="tablecell_success">0</td>
|
||||
<td style="width:30%" class="tablecell_success">100%</td>
|
||||
<td style="width:10%" class="tablecell_success">0.000000</td>
|
||||
<td style="width:10%" class="tablecell_success">1.000000</td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr />
|
||||
@@ -106,7 +106,7 @@ Designed by <a href="https://github.com/cpptest/cpptest">CppTest</a>
|
||||
<td style="width:10%" class="tablecell_success">10</td>
|
||||
<td style="width:10%" class="tablecell_success">0</td>
|
||||
<td style="width:10%" class="tablecell_success">100%</td>
|
||||
<td style="width:10%" class="tablecell_success">0.000000</td>
|
||||
<td style="width:10%" class="tablecell_success">1.000000</td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr />
|
||||
@@ -171,7 +171,7 @@ Designed by <a href="https://github.com/cpptest/cpptest">CppTest</a>
|
||||
<td class="tablecell_success">testMonoBlock</td>
|
||||
<td class="tablecell_success">0</td>
|
||||
<td class="tablecell_success">true</td>
|
||||
<td class="tablecell_success">0.000000</td>
|
||||
<td class="tablecell_success">1.000000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tablecell_success">testSpecialeMax</td>
|
||||
|
||||
@@ -87,7 +87,7 @@ Designed by <a href="https://github.com/cpptest/cpptest">CppTest</a>
|
||||
<td style="width:30%" class="tablecell_success">1</td>
|
||||
<td style="width:30%" class="tablecell_success">0</td>
|
||||
<td style="width:30%" class="tablecell_success">100%</td>
|
||||
<td style="width:10%" class="tablecell_success">11.000000</td>
|
||||
<td style="width:10%" class="tablecell_success">16.000000</td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr />
|
||||
@@ -106,7 +106,7 @@ Designed by <a href="https://github.com/cpptest/cpptest">CppTest</a>
|
||||
<td style="width:10%" class="tablecell_success">1</td>
|
||||
<td style="width:10%" class="tablecell_success">0</td>
|
||||
<td style="width:10%" class="tablecell_success">100%</td>
|
||||
<td style="width:10%" class="tablecell_success">11.000000</td>
|
||||
<td style="width:10%" class="tablecell_success">16.000000</td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr />
|
||||
@@ -123,7 +123,7 @@ Designed by <a href="https://github.com/cpptest/cpptest">CppTest</a>
|
||||
<td class="tablecell_success">performanceOnly</td>
|
||||
<td class="tablecell_success">0</td>
|
||||
<td class="tablecell_success">true</td>
|
||||
<td class="tablecell_success">11.000000</td>
|
||||
<td class="tablecell_success">16.000000</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p class="spaced"><a href="#top">Back to top</a>
|
||||
|
||||
@@ -87,7 +87,7 @@ Designed by <a href="https://github.com/cpptest/cpptest">CppTest</a>
|
||||
<td style="width:30%" class="tablecell_success">0</td>
|
||||
<td style="width:30%" class="tablecell_success">0</td>
|
||||
<td style="width:30%" class="tablecell_success">100%</td>
|
||||
<td style="width:10%" class="tablecell_success">80.000000</td>
|
||||
<td style="width:10%" class="tablecell_success">87.000000</td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr />
|
||||
@@ -106,7 +106,7 @@ Designed by <a href="https://github.com/cpptest/cpptest">CppTest</a>
|
||||
<td style="width:10%" class="tablecell_success">15</td>
|
||||
<td style="width:10%" class="tablecell_success">0</td>
|
||||
<td style="width:10%" class="tablecell_success">100%</td>
|
||||
<td style="width:10%" class="tablecell_success">80.000000</td>
|
||||
<td style="width:10%" class="tablecell_success">87.000000</td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr />
|
||||
@@ -183,7 +183,7 @@ Designed by <a href="https://github.com/cpptest/cpptest">CppTest</a>
|
||||
<td class="tablecell_success">testGrid</td>
|
||||
<td class="tablecell_success">0</td>
|
||||
<td class="tablecell_success">true</td>
|
||||
<td class="tablecell_success">0.000000</td>
|
||||
<td class="tablecell_success">1.000000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tablecell_success">testMonoBlock</td>
|
||||
@@ -195,13 +195,13 @@ Designed by <a href="https://github.com/cpptest/cpptest">CppTest</a>
|
||||
<td class="tablecell_success">testspecialGridDGXMAX</td>
|
||||
<td class="tablecell_success">0</td>
|
||||
<td class="tablecell_success">true</td>
|
||||
<td class="tablecell_success">39.000000</td>
|
||||
<td class="tablecell_success">42.000000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tablecell_success">testSpecialGrid2</td>
|
||||
<td class="tablecell_success">0</td>
|
||||
<td class="tablecell_success">true</td>
|
||||
<td class="tablecell_success">40.000000</td>
|
||||
<td class="tablecell_success">43.000000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tablecell_success">testSpecialeMax</td>
|
||||
|
||||
@@ -87,7 +87,7 @@ Designed by <a href="https://github.com/cpptest/cpptest">CppTest</a>
|
||||
<td style="width:30%" class="tablecell_success">1</td>
|
||||
<td style="width:30%" class="tablecell_success">0</td>
|
||||
<td style="width:30%" class="tablecell_success">100%</td>
|
||||
<td style="width:10%" class="tablecell_success">11.000000</td>
|
||||
<td style="width:10%" class="tablecell_success">10.000000</td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr />
|
||||
@@ -106,7 +106,7 @@ Designed by <a href="https://github.com/cpptest/cpptest">CppTest</a>
|
||||
<td style="width:10%" class="tablecell_success">1</td>
|
||||
<td style="width:10%" class="tablecell_success">0</td>
|
||||
<td style="width:10%" class="tablecell_success">100%</td>
|
||||
<td style="width:10%" class="tablecell_success">11.000000</td>
|
||||
<td style="width:10%" class="tablecell_success">10.000000</td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr />
|
||||
@@ -123,7 +123,7 @@ Designed by <a href="https://github.com/cpptest/cpptest">CppTest</a>
|
||||
<td class="tablecell_success">performanceOnly</td>
|
||||
<td class="tablecell_success">0</td>
|
||||
<td class="tablecell_success">true</td>
|
||||
<td class="tablecell_success">11.000000</td>
|
||||
<td class="tablecell_success">10.000000</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p class="spaced"><a href="#top">Back to top</a>
|
||||
|
||||
112
Student_Cuda_Tools_Reduction/src/core/02_use_protocole/generic/int/PII/host/ReductionIntII.cu
Executable file → Normal file
112
Student_Cuda_Tools_Reduction/src/core/02_use_protocole/generic/int/PII/host/ReductionIntII.cu
Executable file → Normal file
@@ -1,56 +1,56 @@
|
||||
#include "ReductionIntII.h"
|
||||
|
||||
#include "GM.h"
|
||||
#include "Grid.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <assert.h>
|
||||
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
using std::to_string;
|
||||
|
||||
/*----------------------------------------------------------------------*\
|
||||
|* Imported *|
|
||||
\*---------------------------------------------------------------------*/
|
||||
|
||||
extern __global__ void KIntProtocoleII(int* ptrSumGM);
|
||||
|
||||
/*----------------------------------------------------------------------*\
|
||||
|* Implementation *|
|
||||
\*---------------------------------------------------------------------*/
|
||||
|
||||
/*--------------------------------------*\
|
||||
|* Constructeur *|
|
||||
\*-------------------------------------*/
|
||||
|
||||
ReductionIntII::ReductionIntII(const Grid& grid , int* ptrSum,bool isVerbose) :
|
||||
//RunnableGPU(grid, "Reduce_Generic_IntII_" + to_string(grid.threadCounts()),isVerbose), // classe parente
|
||||
RunnableGPU(grid, "Reduce_Generic_IntII" ,isVerbose), // classe parente
|
||||
ptrSum(ptrSum) {
|
||||
// TODO ReductionIntII
|
||||
this->sizeSM = grid.threadByBlock() * sizeof(int);
|
||||
|
||||
GM::mallocInt0(&ptrSumGM);
|
||||
}
|
||||
|
||||
ReductionIntII::~ReductionIntII() {
|
||||
// TODO ReductionIntII
|
||||
|
||||
GM::free(ptrSumGM);
|
||||
}
|
||||
|
||||
/*--------------------------------------*\
|
||||
|* Methode *|
|
||||
\*-------------------------------------*/
|
||||
|
||||
void ReductionIntII::run() {
|
||||
// TODO ReductionIntII
|
||||
|
||||
KIntProtocoleII<<<dg, db, this->sizeSM>>>(ptrSumGM);
|
||||
GM::memcpyDToH_int(ptrSum, ptrSumGM);
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------*\
|
||||
|* End *|
|
||||
\*---------------------------------------------------------------------*/
|
||||
#include "ReductionIntII.h"
|
||||
|
||||
#include "GM.h"
|
||||
#include "Grid.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <assert.h>
|
||||
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
using std::to_string;
|
||||
|
||||
/*----------------------------------------------------------------------*\
|
||||
|* Imported *|
|
||||
\*---------------------------------------------------------------------*/
|
||||
|
||||
extern __global__ void KIntProtocoleII(int* ptrSumGM);
|
||||
|
||||
/*----------------------------------------------------------------------*\
|
||||
|* Implementation *|
|
||||
\*---------------------------------------------------------------------*/
|
||||
|
||||
/*--------------------------------------*\
|
||||
|* Constructeur *|
|
||||
\*-------------------------------------*/
|
||||
|
||||
ReductionIntII::ReductionIntII(const Grid& grid , int* ptrSum,bool isVerbose) :
|
||||
//RunnableGPU(grid, "Reduce_Generic_IntII_" + to_string(grid.threadCounts()),isVerbose), // classe parente
|
||||
RunnableGPU(grid, "Reduce_Generic_IntII" ,isVerbose), // classe parente
|
||||
ptrSum(ptrSum) {
|
||||
// TODO ReductionIntII
|
||||
this->sizeSM = grid.threadByBlock() * sizeof(int);
|
||||
|
||||
GM::mallocInt0(&ptrSumGM);
|
||||
}
|
||||
|
||||
ReductionIntII::~ReductionIntII() {
|
||||
// TODO ReductionIntII
|
||||
|
||||
GM::free(ptrSumGM);
|
||||
}
|
||||
|
||||
/*--------------------------------------*\
|
||||
|* Methode *|
|
||||
\*-------------------------------------*/
|
||||
|
||||
void ReductionIntII::run() {
|
||||
// TODO ReductionIntII
|
||||
|
||||
KIntProtocoleII<<<dg, db, this->sizeSM>>>(ptrSumGM);
|
||||
GM::memcpyDToH_int(ptrSum, ptrSumGM);
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------*\
|
||||
|* End *|
|
||||
\*---------------------------------------------------------------------*/
|
||||
|
||||
@@ -29,7 +29,7 @@ static void generic();
|
||||
int mainTest() {
|
||||
// activer ci-dessous seulement le TP voulu (pas tous)
|
||||
|
||||
// add();
|
||||
add();
|
||||
generic();
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
@@ -46,7 +46,7 @@ void add() {
|
||||
VTReductionAddIntI test1;
|
||||
VTReductionAddIntII test2;
|
||||
|
||||
// test1.run();
|
||||
test1.run();
|
||||
test2.run();
|
||||
}
|
||||
|
||||
@@ -58,8 +58,8 @@ void generic() {
|
||||
VTReductionGenericII test2;
|
||||
VTReductionGenericLongII test3;
|
||||
|
||||
// test1.run();
|
||||
// test2.run();
|
||||
test1.run();
|
||||
test2.run();
|
||||
test3.run();
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ int mainUse() {
|
||||
|
||||
bool isOk = true;
|
||||
|
||||
// reduction_add(isOk); // voir code ci-dessous pour activer la version voulue
|
||||
reduction_add(isOk); // voir code ci-dessous pour activer la version voulue
|
||||
reduction_generic(isOk); // voir code ci-dessous pour activer la version voulue
|
||||
|
||||
print(isOk);
|
||||
@@ -53,10 +53,10 @@ int mainUse() {
|
||||
*/
|
||||
void reduction_add(bool& isOk) {
|
||||
// InbI
|
||||
// {
|
||||
// UseReductionAddIntI algo(IS_VERBOSE);
|
||||
// isOk &= algo.isOk(IS_VERBOSE);
|
||||
// }
|
||||
{
|
||||
UseReductionAddIntI algo(IS_VERBOSE);
|
||||
isOk &= algo.isOk(IS_VERBOSE);
|
||||
}
|
||||
|
||||
// IntII
|
||||
{
|
||||
@@ -70,16 +70,16 @@ void reduction_add(bool& isOk) {
|
||||
*/
|
||||
void reduction_generic(bool& isOk) {
|
||||
// InbI
|
||||
// {
|
||||
// UseReductionIntI algo(IS_VERBOSE);
|
||||
// isOk &= algo.isOk(IS_VERBOSE);
|
||||
// }
|
||||
{
|
||||
UseReductionIntI algo(IS_VERBOSE);
|
||||
isOk &= algo.isOk(IS_VERBOSE);
|
||||
}
|
||||
|
||||
// IntII
|
||||
// {
|
||||
// UseReductionIntII algo(IS_VERBOSE);
|
||||
// isOk &= algo.isOk(IS_VERBOSE);
|
||||
// }
|
||||
{
|
||||
UseReductionIntII algo(IS_VERBOSE);
|
||||
isOk &= algo.isOk(IS_VERBOSE);
|
||||
}
|
||||
|
||||
// LongII
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user