Lines Matching defs:hsa_context
416 /* The HSA ID of the agent. Assigned when hsa_context is initialized. */
568 static struct hsa_context_info hsa_context;
1443 agent_count in hsa_context. */
1449 hsa_context.agent_count++;
1463 hsa_context.agents[*agent_index].id = agent;
1469 /* Initialize hsa_context if it has not already been done.
1478 if (hsa_context.initialized)
1499 GCN_DEBUG ("There are %i GCN GPU devices.\n", hsa_context.agent_count);
1501 hsa_context.agents
1502 = GOMP_PLUGIN_malloc_cleared (hsa_context.agent_count
1507 if (agent_index != hsa_context.agent_count)
1530 size_t len = sizeof hsa_context.driver_version_s;
1531 int printed = snprintf (hsa_context.driver_version_s, len,
1539 hsa_context.initialized = true;
1543 /* Verify that hsa_context has already been initialized and return the
1549 if (!hsa_context.initialized)
1554 if (n >= hsa_context.agent_count)
1559 if (!hsa_context.agents[n].initialized)
1564 return &hsa_context.agents[n];
3221 return hsa_context.agent_count;
3232 if (n >= hsa_context.agent_count)
3237 struct agent_info *agent = &hsa_context.agents[n];
4047 propval.ptr = hsa_context.driver_version_s;