Commit 5e233ea3 authored by Dominik Thoennes's avatar Dominik Thoennes
Browse files

remove nvtx wrapper

the wrapper did not compile but since this was not a problem in the last two years it can be removed
parent 9b53bb97
Pipeline #30918 passed with stages
in 344 minutes and 31 seconds
......@@ -1043,12 +1043,8 @@ if ( WALBERLA_BUILD_WITH_CUDA )
find_library(CUDART_LIBRARY cudart ${CMAKE_CUDA_IMPLICIT_LINK_DIRECTORIES})
list ( APPEND SERVICE_LIBS ${CUDART_LIBRARY} )
#TODO: check if this is really needed? is it possible that nvtx is missing?
find_library( NVTX_LIBRARY nvToolsExt ${CMAKE_CUDA_IMPLICIT_LINK_DIRECTORIES} )
if( NVTX_LIBRARY )
set( WALBERLA_CUDA_NVTX_AVAILABLE 1)
list ( APPEND SERVICE_LIBS ${NVTX_LIBRARY} )
endif()
list ( APPEND SERVICE_LIBS ${NVTX_LIBRARY} )
#CUDA_FOUND is need for our cmake mechanism
set ( CUDA_FOUND TRUE )
......
......@@ -23,7 +23,6 @@
#include <string>
#ifdef WALBERLA_CUDA_NVTX_AVAILABLE
#include <nvToolsExt.h>
#include <nvToolsExtCuda.h>
#include <nvToolsExtCudaRt.h>
......@@ -73,25 +72,4 @@ private:
} // namespace cuda
} // namespace walberla
#else
namespace walberla{
namespace cuda {
inline void nameStream(const cudaStream_t & stream, const std::string & name) {}
inline void nvtxMarker(const std::string& name, const uint32_t color=0xaaaaaa) {}
class NvtxRange
{
public:
NvtxRange(const std::string & name, const uint32_t color=0xaaaaaa) {}}
};
} // namespace cuda
} // namespace walberla
#endif
\ No newline at end of file
} // namespace walberla
\ No newline at end of file
......@@ -33,7 +33,6 @@
#cmakedefine WALBERLA_MESAPD_CONVEX_POLYHEDRON_AVAILABLE
#cmakedefine WALBERLA_BUILD_WITH_CUDA
#cmakedefine WALBERLA_CUDA_NVTX_AVAILABLE
#cmakedefine WALBERLA_BUILD_WITH_CODEGEN
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment