8 #ifndef K_FIRESYNC_CUDA_DEF_H
9 #define K_FIRESYNC_CUDA_DEF_H
12 #include <kFireSync/Cuda/kCudaDef.x.h>
23 #define kCUDA_ENVIRONMENT_STATUS_READY (0)
24 #define kCUDA_ENVIRONMENT_STATUS_NOT_INTEGRATED (1)
25 #define kCUDA_ENVIRONMENT_STATUS_NO_DEVICE (2)
26 #define kCUDA_ENVIRONMENT_STATUS_INCOMPATIBLE_RUNTIME (3)
27 #define kCUDA_ENVIRONMENT_STATUS_INCOMPATIBLE_DRIVER (4)
28 #define kCUDA_ENVIRONMENT_STATUS_INCOMPATIBLE_DEVICE (5)
37 typedef k32s kCudaSync;
40 #define kCUDA_SYNC_DEFAULT (0)
41 #define kCUDA_SYNC_WAIT (1)
42 #define kCUDA_SYNC_WAIT_HOST (2)
43 #define kCUDA_SYNC_DEFER (3)
51 typedef struct kCudaProperties
80 #define kCheckCuda(EXPRESSION) kCheck(kCudaStatus_Convert(kCudaStatus_Filter(EXPRESSION)));
92 #define kTestCuda(EXPRESSION) kTest(kCudaStatus_Convert(kCudaStatus_Filter(EXPRESSION)));
Collection of Cuda device properties.
Definition: kCudaDef.h:51
kBool canMapHostMemory
Can the device map page-locked host memory into the device address space?
Definition: kCudaDef.h:60
kBool kCudaStatus_Verify(k32s cudaStatus)
Converts a Cuda status code to a boolean value and clears Cuda error state.
kBool isIntegrated
Is the device integrated (as opposed to discrete)?
Definition: kCudaDef.h:58
Represents the overall state of the Cuda processing environment.
k32s warpSize
Warp size, in threads.
Definition: kCudaDef.h:67
k32s asyncEngineCount
Asynchronous processing (copy) engine count.
Definition: kCudaDef.h:62
k64s clockRate
Device clock rate (Hz).
Definition: kCudaDef.h:54
k32s maxThreadsPerBlock
Maximum number of threads per block;.
Definition: kCudaDef.h:64
Essential API declarations for the kFireSync library.
k64s totalGlobalMem
Global memory available on device, in bytes.
Definition: kCudaDef.h:57
kStatus kCudaStatus_GetAndClear()
Returns a kStatus code that represents any accumulated cuda runtime errors and clears error state...
k32s multiprocesorCount
Streaming multiprocessor count.
Definition: kCudaDef.h:61
kStatus kCudaStatus_Convert(k32s cudaStatus)
Converts a Cuda status code to a kStatus code.
k32s maxThreadsPerMultiprocessor
Maximum number of threads per multiprocessor.
Definition: kCudaDef.h:63
kStatus kCudaStatus_Peek()
Returns a kStatus code that represents any accumulated cuda runtime errors.
k64s memoryClockRate
Memory bus clock rate (Hz).
Definition: kCudaDef.h:55
k32s kCudaStatus_Filter(k32s cudaStatus)
Ensures that Cuda eror state is cleared after making a Cuda runtime call.
kVersion computeCapability
Overall level of capabilities supported by hardware.
Definition: kCudaDef.h:53
kBool concurrentManagedAccess
Does the device support concurrent access by host and device to managed memory?
Definition: kCudaDef.h:59
k32s memoryWidth
Memory bus width, in bits.
Definition: kCudaDef.h:56