mirror of https://github.com/QMCPACK/qmcpack.git
Added USE_NVTX_API to the manual. Backed out accidental change to GNUCompiler.cmake
This commit is contained in:
parent
3d53e4336b
commit
7038db2f7d
|
@ -41,8 +41,8 @@ if(CMAKE_CXX_FLAGS MATCHES "-march=" OR CMAKE_C_FLAGS MATCHES "-march=")
|
|||
endif() #(CMAKE_CXX_FLAGS MATCHES "-march=" AND CMAKE_C_FLAGS MATCHES "-march=")
|
||||
else() #(CMAKE_CXX_FLAGS MATCHES "-march=" OR CMAKE_C_FLAGS MATCHES "-march=")
|
||||
# use -march=native
|
||||
#SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native")
|
||||
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
|
||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native")
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
|
||||
endif() #(CMAKE_CXX_FLAGS MATCHES "-march=" OR CMAKE_C_FLAGS MATCHES "-march=")
|
||||
|
||||
ENDIF(NOT $ENV{CRAYPE_VERSION} MATCHES ".")
|
||||
|
|
|
@ -19,6 +19,16 @@ An example of options to be passed to CMake
|
|||
-DCMAKE_LIBRARY_PATH=/opt/intel/vtune_amplifier_xe/lib64
|
||||
\end{shade}
|
||||
|
||||
\section{NVIDIA Tools Extensions (NVTX)}
|
||||
|
||||
NVIDIA's Tools Extensions (NVTX) API enables programmers to annotate their source code when used with the NVIDIA profilers.
|
||||
|
||||
\subsection{NVTX API}
|
||||
|
||||
If the variable \texttt{USE\_NVTX\_API} is set, QMCPACK will add the library (\texttt{libnvToolsExt.so}) to the qmcpack target. To add NVTX annotations
|
||||
to a function, it is necessary to include the \texttt{nvToolsExt.h} header file and then make the appropriate calls into the NVTX API. For more information
|
||||
about the NVTX API, see \url{https://docs.nvidia.com/cuda/profiler-users-guide/index.html#nvtx}. Any additional calls to the NVTX API should be guarded by
|
||||
the \texttt{USE\_NVTX\_API} compiler define.
|
||||
|
||||
\subsection{Timers as Tasks}
|
||||
To aid in connecting the timers in the code to the profile data, the start/stop of
|
||||
|
|
Loading…
Reference in New Issue