cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] rafaelweingartner commented on a change in pull request #2340: CLOUDSTACK-10106: GPU/vGPU Support on VMWare
Date Thu, 01 Jan 1970 00:00:00 GMT
rafaelweingartner commented on a change in pull request #2340: CLOUDSTACK-10106: GPU/vGPU Support
on VMWare
URL: https://github.com/apache/cloudstack/pull/2340#discussion_r153313658
 
 

 ##########
 File path: plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
 ##########
 @@ -4766,6 +4848,31 @@ protected Answer execute(UnregisterNicCommand cmd) {
         }
     }
 
+    /**
+     * GetGPUStatsCommand is used to collect the GPU/vGPU details of all the
+     * GPU enabled hosts.
+     * Do Nothing.
+     * @param cmd
+     * @return Answer
+     */
+    protected Answer execute(final GetGPUStatsCommand cmd) {
+        final VmwareContext context = getServiceContext();
+        final VmwareHypervisorHost hyperHost = getHyperHost(context);
+        final HostMO hostMo = new HostMO(context, hyperHost.getMor());
+
+        HashMap<String, HashMap<String, VgpuTypesInfo>> groupDetails = new HashMap<String,
HashMap<String, VgpuTypesInfo>>();
+
+        try {
+            groupDetails = hostMo.getGPUGroupDetails();
 
 Review comment:
   What about using the code of line 4873 right after this line?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message