OSDN Git Service

new file: Integration/Tomography/Makefile.recent
[eos/hostdependX86LINUX64.git] / hostdepend / X86MAC64 / util / X86MAC64 / cuda / samples / 7_CUDALibraries / MC_EstimatePiInlineP / inc / piestimator.h
1 /*
2  * Copyright 1993-2013 NVIDIA Corporation.  All rights reserved.
3  *
4  * Please refer to the NVIDIA end user license agreement (EULA) associated
5  * with this source code for terms and conditions that govern your use of
6  * this software. Any use, reproduction, disclosure, or distribution of
7  * this software and related documentation outside the terms of the EULA
8  * is strictly prohibited.
9  *
10  */
11
12 #ifndef PIESTIMATOR_H
13 #define PIESTIMATOR_H
14
15 template <typename Real>
16 class PiEstimator
17 {
18     public:
19         PiEstimator(unsigned int numSims, unsigned int device, unsigned int threadBlockSize, unsigned int seed);
20         Real operator()();
21
22     private:
23         unsigned int m_seed;
24         unsigned int m_numSims;
25         unsigned int m_device;
26         unsigned int m_threadBlockSize;
27 };
28
29 #endif