Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
samr7
GitHub Repository: samr7/vanitygen
Path: blob/master/oclengine.h
239 views
1
/*
2
* Vanitygen, vanity bitcoin address generator
3
* Copyright (C) 2011 <[email protected]>
4
*
5
* Vanitygen is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU Affero General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* any later version.
9
*
10
* Vanitygen is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU Affero General Public License for more details.
14
*
15
* You should have received a copy of the GNU Affero General Public License
16
* along with Vanitygen. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
#if !defined (__VG_OCLENGINE_H__)
20
#define __VG_OCLENGINE_H__
21
22
#include "pattern.h"
23
24
typedef struct _vg_ocl_context_s vg_ocl_context_t;
25
26
extern vg_ocl_context_t *vg_ocl_context_new(
27
vg_context_t *vcp, int platformidx, int deviceidx,
28
int safe_mode, int verify,
29
int worksize, int nthreads, int nrows, int ncols,
30
int invsize);
31
extern void vg_ocl_context_free(vg_ocl_context_t *vocp);
32
33
extern vg_ocl_context_t *vg_ocl_context_new_from_devstr(
34
vg_context_t *vcp, const char *devstr, int safemode, int verify)
35
;
36
37
extern void vg_ocl_enumerate_devices(void);
38
39
#endif /* !defined (__VG_OCLENGINE_H__) */
40
41