clSPARSE  v0.10.0.0
a software library containing Sparse functions written in OpenCL
clsparseTimer-extern.hpp
Go to the documentation of this file.
1 /* ************************************************************************
2  * Copyright 2015 Advanced Micro Devices, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  * ************************************************************************ */
16 
25 #pragma once
26 #ifndef _STATISTICALTIMER_EXTERN_H_
27 #define _STATISTICALTIMER_EXTERN_H_
28 #include "clSPARSE.h"
29 #include "clsparseTimer.hpp"
30 
31 #include "clsparsetimer_export.h"
32 
36 typedef enum clsparseTimerType_
37 {
38  CLSPARSE_GPU = 1,
39  CLSPARSE_CPU,
41 
46 typedef clsparseTimer* (*PFCLSPARSETIMER)(const clsparseTimerType type);
47 
52 extern "C" CLSPARSETIMER_EXPORT clsparseTimer* clsparseGetTimer(const clsparseTimerType type);
53 
54 #endif // _STATISTICALTIMER_EXTERN_H_
CLSPARSETIMER_EXPORT clsparseTimer * clsparseGetTimer(const clsparseTimerType type)
This returns a reference to the singleton timer. Guarantees only 1 timer class is ever instantiated w...
A timer class that provides a cross platform timer for use in timing code progress with a high degree...
clsparseTimerType
Different timer back-ends that can be requested.
Definition: clsparseTimer-extern.hpp:36
Counter that provides a fairly accurate timing mechanism for both windows and linux. This timer is used extensively in all the samples.
Definition: clsparseTimer.hpp:46
clSPARSE.h defines 'C' compatible callable functions and types that call into the library ...