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 CUDAHelpers {
21
22std::pair<std::chrono::microseconds, std::chrono::microseconds> memcpyBenchmark(std::size_t nBytes);
23
24} // namespace CUDAHelpers
25} // namespace RooFit
26
27#endif
std::pair< std::chrono::microseconds, std::chrono::microseconds > memcpyBenchmark(std::size_t nBytes)
Measure the time for transfering data from host to device and vice-versa.
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
Definition Common.h:18