Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
CudaHelpers.h
Go to the documentation of this file.
1/*
2 * Project: RooFit
3 * Authors:
4 * Jonas Rembser, CERN 2022
5 *
6 * Copyright (c) 2022, CERN
7 *
8 * Redistribution and use in source and binary forms,
9 * with or without modification, are permitted according to the terms
10 * listed in LICENSE (http://roofit.sourceforge.net/license.txt)
11 */
12
13#ifndef RooFit_CudaHelpers_h
14#define RooFit_CudaHelpers_h
15
16#include <chrono>
17#include <utility>
18
19namespace RooFit {
20namespace Detail {
21/*
22 * Contains helper functions that might be useful in the context of using a CUDA GPU.
23 *
24 * \ingroup RooFitCuda
25 */
26namespace CudaHelpers {
27
28std::pair<std::chrono::microseconds, std::chrono::microseconds> memcpyBenchmark(std::size_t nBytes);
29
30} // namespace CudaHelpers
31} // namespace Detail
32} // namespace RooFit
33
34#endif
std::pair< std::chrono::microseconds, std::chrono::microseconds > memcpyBenchmark(std::size_t nBytes)
Measure the time taken to perform memory copy operations between host and device memory.
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
Definition JSONIO.h:26