Matlab, CUDA, and GPU Computing

From edegan.com
Revision as of 17:43, 3 July 2018 by WeiWu (talk | contribs)
Jump to navigation Jump to search

Main Project here: Estimating Unobserved Complementarities between Entrepreneurs and Venture Capitalists Matlab Code

Getting Started

We are running remotely on the Database Server via VNC. The VNC service on DB Server was configured by Wei during Summer 2018.

  • To start/configure the VNC service on DB Server and to get connected remotely, see the documentation here.
  • Once you are connected to DB Server through VNC, open a terminal on DB Server and type
matlab

This will bring up the Matlab GUI.

  • To check if Matlab is working with our Nvidia graphics card, in the Matlab command window, type
gpuDevice. 

GpuDevice.png

What Works, and What Doesn't

  • For the above reason, Gurobi does not support GPU computing.
  • Matlab does not have GPU-based linprog or ga.
  • Gurobi does support CPU parallelism.

Reference

1. MATLAB GPU Computing Support for NVIDIA CUDA-Enabled GPUs
2. Getting Started with Parallel Computing Toolbox

Deliverable

1. In Matlab, use parfor for both CPU and GPU to solve a set of LPs. Profile and compare.