Skip to content
Snippets Groups Projects

Remove GPU compiler warnings (Closes #4, #12)

Merged Sören Peters requested to merge soe.peters/VirtualFluids:gpu_warnings into develop
2 files
+ 9
7
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -24,9 +24,10 @@ float runKernelInitalUniformGrid3d(const LaunchParameter& para, GridImp &grid)
GLOBAL void initalField(GridImp grid)
{
uint index = LaunchParameter::getGlobalIdx_2D_1D();
if (index < grid.getSize())
grid.findInnerNode(index);
//TODO: outcomment because of nvlink warning caused by the new allocation in Cell().
//uint index = LaunchParameter::getGlobalIdx_2D_1D();
//if (index < grid.getSize())
// grid.findInnerNode(index);
}
//////////////////////////////////////////////////////////////////////////
@@ -38,9 +39,10 @@ float runKernelToMesh(const LaunchParameter& para, GridImp &grid, const Triangul
GLOBAL void runMeshing(GridImp grid, const TriangularMesh geom)
{
unsigned int i = LaunchParameter::getGlobalIdx_1D_1D();
if (i < geom.size)
grid.mesh(geom.triangles[i]);
// TODO: outcomment because of nvlink warning caused by the new allocation in Cell().
//unsigned int i = LaunchParameter::getGlobalIdx_1D_1D();
//if (i < geom.size)
// grid.mesh(geom.triangles[i]);
}
//////////////////////////////////////////////////////////////////////////
Loading