diff --git a/CMakeLists.txt b/CMakeLists.txt index 9027ff5c0ae6ed439249b9802af5d678e1b6448a..2ffbb4b4ed6ba064c3072b73213ff4408724a36f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") diff --git a/src/gpu/GridGenerator/grid/kernel/runGridKernelGPU.cu b/src/gpu/GridGenerator/grid/kernel/runGridKernelGPU.cu index 7aa6d4ebb091a5592423cc5afed224597ba700a4..ff137357b5bd7904253db372b37ca5d9e47bd102 100644 --- a/src/gpu/GridGenerator/grid/kernel/runGridKernelGPU.cu +++ b/src/gpu/GridGenerator/grid/kernel/runGridKernelGPU.cu @@ -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]); } //////////////////////////////////////////////////////////////////////////