CRC Running MATLAB on a GPGPU on NOTS

CRC Running MATLAB on a GPGPU on NOTS

The NOTS cluster contains General Purpose Graphics Processing Units (GPGPUs) which can be used for considerable performance improvements on certain types of applications.  Please see this MathWorks web page for instructions, demos, and tutorials about how to use MATLAB with GPGPUs.  The steps required to ensure your MATLAB sessions run on the GPU nodes varies depending on how you submit your MATLAB jobs, please choose from the following options:

Your MATLAB code must be written for the GPU

Simply running on the GPU nodes does not mean that your MATLAB code is using the GPU.  You must write your code to invoke built-in MATLAB GPU functions.

Running MATLAB on a GPU using PCT from a cluster login node

To create a cluster object based on the GPU profile, use the following MATLAB command:

>> ClusterInfo.state
 
                          Arch : 
                   ClusterHost : 
               DataParallelism : 
                     DiskSpace : 
                  EmailAddress : 
                   GpusPerNode : 
                      MemUsage : 
                PrivateKeyFile : 
   PrivateKeyFileHasPassPhrase : 1
                  ProcsPerNode : 
                   ProjectName : 
                     QueueName : 
          RequireExclusiveNode : 0
                   Reservation : 
                       SshPort : 
                        UseGpu : 0
            UserDefinedOptions : 
             UserNameOnCluster : 
                      WallTime :
 
 
>> ClusterInfo.setUseGpu(true);
 
 
>> ClusterInfo.state
 
                          Arch : 
                   ClusterHost : 
               DataParallelism : 
                     DiskSpace : 
                  EmailAddress : 
                   GpusPerNode : 
                      MemUsage : 
                PrivateKeyFile : 
   PrivateKeyFileHasPassPhrase : 1
                  ProcsPerNode : 
                   ProjectName : 
                     QueueName : 
          RequireExclusiveNode : 0
                   Reservation : 
                       SshPort : 
                        UseGpu : 1
            UserDefinedOptions : 
             UserNameOnCluster : 
                      WallTime :

 

 





Keywords:CRC Running MATLAB on a GPGPU on NOTS   Doc ID:108425
Owner:Joseph G.Group:Rice University
Created:2021-01-19 14:16 CDTUpdated:2021-02-24 12:59 CDT
Sites:Rice University
Feedback:  4   4