![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | job.script | 2018-08-03 11:06 | 197 | |
![]() | main.m | 2018-08-03 13:51 | 1.6K | |
![]() | mandelbrot_set.cu | 2018-08-03 12:05 | 2.3K | |
This directory includes an example Matlab program to compute the Mandelbrot set on GPU. A CUDA C++ function is called by a Matlab code.
First, compile the CUDA C++ code,
module load cuda/9.1
nvcc -ptx mandelbrot_set.cu
An assembly-level ptx
file is created.
Then open Matlab,
module load matlab/2018a
matlab &
and run the program in Matlab interface,
>> main
The computing times are compared on CPU and on GPU, and the figures of Mandelbrot set are plotted.
To run the Matlab program in background, submit a batch job,
qsub job.script