Implemented acNodeQueryDeviceConfiguration
This commit is contained in:
@@ -27,7 +27,16 @@ extern "C" {
|
|||||||
typedef struct node_s* Node; // Opaque pointer to node_s.
|
typedef struct node_s* Node; // Opaque pointer to node_s.
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
int3 m;
|
||||||
|
int3 n;
|
||||||
|
} Grid;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
int num_devices;
|
||||||
|
Device* devices;
|
||||||
|
|
||||||
|
Grid grid;
|
||||||
|
Grid subgrid;
|
||||||
} DeviceConfiguration;
|
} DeviceConfiguration;
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
|
@@ -131,11 +131,6 @@
|
|||||||
|
|
||||||
static const int MAX_NUM_DEVICES = 32;
|
static const int MAX_NUM_DEVICES = 32;
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
int3 m;
|
|
||||||
int3 n;
|
|
||||||
} Grid;
|
|
||||||
|
|
||||||
struct node_s {
|
struct node_s {
|
||||||
int id;
|
int id;
|
||||||
|
|
||||||
@@ -334,10 +329,12 @@ acNodePrintInfo(const Node node)
|
|||||||
AcResult
|
AcResult
|
||||||
acNodeQueryDeviceConfiguration(const Node node, DeviceConfiguration* config)
|
acNodeQueryDeviceConfiguration(const Node node, DeviceConfiguration* config)
|
||||||
{
|
{
|
||||||
(void)node;
|
config->num_devices = node->num_devices;
|
||||||
(void)config;
|
config->devices = node->devices;
|
||||||
WARNING("Not implemented");
|
config->grid = node->grid;
|
||||||
return AC_FAILURE;
|
config->subgrid = node->subgrid;
|
||||||
|
|
||||||
|
return AC_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
AcResult
|
AcResult
|
||||||
|
Reference in New Issue
Block a user