FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kCudaDevice.h
Go to the documentation of this file.
1 
8 #ifndef K_FIRESYNC_CUDA_DEVICE_H
9 #define K_FIRESYNC_CUDA_DEVICE_H
10 
12 #include <kFireSync/Cuda/kCudaDevice.x.h>
13 
26 kFsFx(kSize) kCudaDevice_Count();
27 
35 kFsFx(kStatus) kCudaDevice_Selected(kSize* index);
36 
45 kInlineFx(kStatus) kCudaDevice_Properties(kSize index, kCudaProperties* properties)
46 {
47  return xkCudaDevice_Properties(index, properties);
48 }
49 
58 {
59  return xkCudaDevice_Properties(kSIZE_NULL, properties);
60 }
61 
69 {
70  return kVersion_Create(xkCUDA_MIN_COMPUTE_CAPABILITY_MAJOR, xkCUDA_MIN_COMPUTE_CAPABILITY_MINOR, 0, 0);
71 }
72 
84 kFsFx(kBool) kCudaDevice_IsAvailable(kBool checkCompatibility = kTRUE);
85 
86 #endif
Collection of Cuda device properties.
Definition: kCudaDef.h:51
#define kInlineFx(TYPE)
#define kSIZE_NULL
kBool kCudaDevice_IsAvailable(kBool checkCompatibility=kTRUE)
Reports whether a device is selected and, optionally, compatible with default minimimum platform requ...
kVersion kCudaDevice_MinimumComputeCapability()
Reports the minimum compute capability recommended for use with FireSync platform Cuda support...
Definition: kCudaDevice.h:68
kStatus kCudaDevice_Properties(kSize index, kCudaProperties *properties)
Reports the properties associated with a Cuda device.
Definition: kCudaDevice.h:45
kSize kCudaDevice_Count()
Reports the number of Cuda-capable devices present in the system.
kStatus kCudaDevice_Selected(kSize *index)
Reports the index of the currently selected device.
Central Cuda-related definitions.