Renamed NUM_STREAM_TYPES -> NUM_STREAMS
This commit is contained in:
@@ -127,9 +127,9 @@ typedef enum {
|
|||||||
STREAM_14,
|
STREAM_14,
|
||||||
STREAM_15,
|
STREAM_15,
|
||||||
STREAM_16,
|
STREAM_16,
|
||||||
NUM_STREAM_TYPES
|
NUM_STREAMS
|
||||||
} Stream;
|
} Stream;
|
||||||
#define STREAM_ALL (NUM_STREAM_TYPES)
|
#define STREAM_ALL (NUM_STREAMS)
|
||||||
|
|
||||||
#define AC_GEN_ID(X) X
|
#define AC_GEN_ID(X) X
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
@@ -46,7 +46,7 @@ struct device_s {
|
|||||||
AcMeshInfo local_config;
|
AcMeshInfo local_config;
|
||||||
|
|
||||||
// Concurrency
|
// Concurrency
|
||||||
cudaStream_t streams[NUM_STREAM_TYPES];
|
cudaStream_t streams[NUM_STREAMS];
|
||||||
|
|
||||||
// Memory
|
// Memory
|
||||||
VertexBufferArray vba;
|
VertexBufferArray vba;
|
||||||
@@ -163,7 +163,7 @@ acDeviceCreate(const int id, const AcMeshInfo device_config, Device* device_hand
|
|||||||
printf("Success!\n");
|
printf("Success!\n");
|
||||||
|
|
||||||
// Concurrency
|
// Concurrency
|
||||||
for (int i = 0; i < NUM_STREAM_TYPES; ++i) {
|
for (int i = 0; i < NUM_STREAMS; ++i) {
|
||||||
cudaStreamCreateWithPriority(&device->streams[i], cudaStreamNonBlocking, 0);
|
cudaStreamCreateWithPriority(&device->streams[i], cudaStreamNonBlocking, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -228,7 +228,7 @@ acDeviceDestroy(Device device)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Concurrency
|
// Concurrency
|
||||||
for (int i = 0; i < NUM_STREAM_TYPES; ++i) {
|
for (int i = 0; i < NUM_STREAMS; ++i) {
|
||||||
cudaStreamDestroy(device->streams[i]);
|
cudaStreamDestroy(device->streams[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user