-
Notifications
You must be signed in to change notification settings - Fork 3
Compiling & Executing MP without the Run Script
sean-dougherty edited this page Jan 31, 2015
·
2 revisions
This page describes how to build and run your MP without the run script.
The Makefile is a symbolic link to dev/etc/mp.mak. It assumes that you execute it from the directory containing mp.cu. Compiling your MP directly would need to look something like the following:
cd mp/1
make
The usage for the MP binary can be seen by running with no arguments:
usage: ./mp data/i
example: ./mp data/2
The only argument is a directory containing the MP input/output files. For example:
[~/cuda-edu/mp/1]$ ls data/0
input0.raw input1.raw output.raw
The number of OS threads is controlled by the environment variable EDU_CUDA_THREAD_COUNT. So, for example, if you wanted to run with a single thread, you would execute:
export EDU_CUDA_THREAD_COUNT=1
./mp data/0