Skip to content
Snippets Groups Projects
Commit fb3c7dd4 authored by Soeren Peters's avatar Soeren Peters
Browse files

Test cuda standard 11.

parent f67a3fa2
No related branches found
No related tags found
1 merge request!27Remove GPU compiler warnings (Closes #4, #12)
......@@ -103,7 +103,7 @@ if(BUILD_VF_GPU)
message(FATAL_ERROR "CUDA Compiler was requested but is not found on the system.")
endif()
set(CMAKE_CUDA_STANDARD 14)
set(CMAKE_CUDA_STANDARD 11)
set(CMAKE_CUDA_STANDARD_REQUIRED TRUE)
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Xcudafe --display_error_number")
......
......@@ -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]);
}
//////////////////////////////////////////////////////////////////////////
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment