00001 // Copyright (c) AccelerEyes LLC. All rights reserved. // 00002 // See http://www.accelereyes.com/eula for details. // 00003 // This software is distributed WITHOUT ANY WARRANTY; without even // 00004 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // 00005 // PURPOSE. See the above copyright notices for more information. // 00006 //-----------------------------------------------------------------------// 00007 00008 #pragma once 00009 00010 #undef TRUE 00011 #ifdef __cplusplus 00012 #define TRUE =true 00013 #define FLOP ='f' 00014 #else 00015 #define TRUE 00016 #define FLOP 00017 #endif 00018 00019 #ifdef __cplusplus 00020 namespace af { 00022 00024 AFAPI void info(); 00025 00032 AFAPI void deviceset(int index); 00033 00038 AFAPI int deviceget(); 00039 00044 AFAPI int devicecount(); 00045 00046 00048 00049 00050 } // namespace af 00051 #endif // __cplusplus 00052 00053 00055 00057 AFAPI afError af_info(); 00058 00059 AFAPI afError af_cuda_info(char *driverVersion, double *runtimeVersion, int buflen); 00060 00071 AFAPI afError af_deviceset(int index, bool use_graphics TRUE, char sort_mode FLOP); 00072 00077 AFAPI afError af_deviceget(int *dev); 00078 00084 AFAPI afError af_devicegetreal(int dev, int *devreal); 00085 00091 AFAPI afError af_devicepush(int index); 00092 00097 AFAPI afError af_devicepop(); 00098 00099 00106 AFAPI afError af_devicecountactive(int *count, int *devices); 00107 00108 00113 AFAPI afError af_devicecount(int *count); 00114 00115 00117 00118 #undef TRUE