CorTeX
Core ABI 7
ToolTech Software · C++ library reference
ToolTech
CorTeX overview
Programmer’s manual
Class reference
Change history
CycloPos ↗
Toggle main menu visibility
Loading...
Searching...
No Matches
include
ctxBase.h
Go to the documentation of this file.
1
//*****************************************************************************
2
// File : ctxBase.h
3
// Description : Basics for CorTeX Genetic Engine
4
// Author : Anders Modén
5
// Product : CorTeX 2.0.1
6
//
7
// Copyright © 2015- Anders Modén, Sweden
8
//
9
// NOTE: CorTeX is a software development kit (SDK)
10
// for neural networks and genetic programming.
11
// Licensed by Anders Modén.
12
//
13
//
14
// Revision History...
15
//
16
// Who Date Description
17
//
18
// AMO 150708 Created file (1.0.0)
19
//
20
//******************************************************************************
21
#ifndef __CTX_BASE_H__
22
#define __CTX_BASE_H__
23
24
// Enable for performanc monitoring
25
//#define GZ_INSTRUMENT_CODE
26
27
28
#ifdef _NVCC_
// Supress warnings for CUDA nvcc
29
30
#pragma nv_diag_suppress 611
31
#pragma nv_diag_suppress 187
32
#pragma nv_diag_suppress 1388
33
34
#endif
35
36
#include "gzBaseLibrary.h"
37
38
// Some common defines and types shared wil OpenCL and CUDA etc
39
40
#if !defined _NVCC_
41
42
#define CTX_DEV_INLINE inline
43
44
#define CONST_UINT_32 const gzUInt32
// Define the common types
45
#define CONST_FLOAT const float
46
47
#define GLOBAL_FLOAT_PTR float * __restrict
48
#define GLOBAL_FLOAT_PTR_R const float * __restrict
49
50
#define GLOBAL_BYTE_PTR unsigned char * __restrict
51
52
#endif
53
54
#include "
ctxTypes.h
"
55
#include "stdio.h"
// Allow printf
56
57
58
59
// Generic setup of export info for windows
60
61
#if defined GZ_WINDOWS && !defined CTX_STATIC
62
#ifdef CORTEX_EXPORTS
63
#define CTX_EXPORT __declspec(dllexport)
64
#else
65
#define CTX_EXPORT __declspec(dllimport)
66
#endif
67
#else
68
#define CTX_EXPORT
69
#endif
70
71
#ifndef CTX_STATIC
72
#ifndef GZ_NOLIBREF
73
#define CTX_LIBREF_IMPL gzLibReference *ctxGetLibReference(){ return gzGetLibReference(GZ_LIB_PREFIX "cortex" ); }
74
#else
75
#define CTX_LIBREF_IMPL gzLibReference *ctxGetLibReference(){ return NULL; }
76
#endif
77
#else
78
#define CTX_LIBREF_IMPL gzLibReference *ctxGetLibReference(){ return NULL; }
79
#endif
80
81
// --------------------------------- Unique GUID ----------------------------
82
83
CTX_EXPORT
gzGUID
ctxGetInstanceID
();
84
85
#endif
//__CTX_BASE_H__
CTX_EXPORT
#define CTX_EXPORT
Definition
ctxBase.h:68
ctxGetInstanceID
gzGUID ctxGetInstanceID()
ctxTypes.h
Generated by
1.18.0