Changes

Jump to: navigation, search

GPU621/DPS921 Student Resources

1,457 bytes added, 07:36, 13 September 2017
no edit summary
{{GPU621/DPS921 Index | 2014120177}}
The purpose of this page is to share useful information that can help groups with their projects.
== Cilk Plus ==
* [http://groups.csail.mit.edu/sct/wiki/index.php?title=Cilk_Plus_Installation_Guide MIT Installation Guide]
* [https://www.cilkplus.org/build-gcc-cilkplus Cilk Plus Installation Guide]
* Cilk Plus is installed on matrix.senecac.on.ca server and on the matrix partition of the workstations in T2108
** /usr/local/gcc/gcc-cilk/bin/g++
 
====Tips for building from source (tested on Fedora 19)====
Works but gets a "Segmentation fault (core dumped)" when testing out w1.cilk.cpp when cilk_for loops > 3 times.
* download snapshot gcc-2427776 (2013-05-20) (current version on matrix as of 2014-01-17)
* configure using:
** /path/to/configure --prefix=/path/to/installation --enable-languages="c,c++" --disable-multilib
 
=== Configuration ===
==== Linux ====
* add to .bash_profile
** alias gc++="/usr/local/gcc/gcc-cilk/bin/g++ -fcilkplus -ldl -lcilkrts"
** export LD_LIBRARY_PATH=/path/to/cilkplus-installation/lib:$LD_LIBRARY_PATH
** source /path/to/tbbvars.sh ia32 -ltbb
== TBB ==
== Cilk Plus ==
=== Linux ===
* gc++ -o xxx sourcexxx.cpp
== TBB ==
=== Linux ===
* source tbbvars.sh ia32
* gc++ -o xxx xxx.cpp -ltbb
* long hand
** gc++ -I /usr/local/gcc/tbb41_20130613oss/include/ -o xxx -L/usr/local/gcc/tbb41_20130613oss/lib/ia32/gcc4.1/ -ltbb xxx.cpp
* poor error messages on lambda expressions
== OpenCL ==
** Fermi cards - nvcc -code=sm_20 _arch=compute_20
** nvcc opencl.cpp -lOpenCL
==OpenMP=====Visual Studio===Compiling OpenMP programs in visual studio 2012====enabling openmp====# Right-click on "Project Solution" under "Solution Explorer" and select "Properties"# On the properties pane, select "Configuration Properties" -> "C/C++" -> "Language"# On the details page, make sure "Open MP Support" is set to "Yes (/openmp)"====setting environemnt variables====# Right-click on "Project Solution" under "Solution Explorer" and select "Properties"# On the properties pane, select "Configuration Properties" -> "Debugging"# On the details page, make sure "Environment" has "OMP_NUM_THREADS=4;" in it
= Workshop Notes =
==BLAS DocumentationPlatforms==* executing an alias when creating a typescript** add . ~/.bash_profile inside the script before invoking the alias** [http://zenit.senecac.on.ca/wiki/indexstackoverflow.phpcom/GPU610questions/DPS915_BLAS_Documentation GPU61015968053/DPS915_BLAS Documentation Pageusing-alias-in-shell-script using alias in a shell script]
= Assignment Notes ===Shared MemoryOpenMP====Message Passing==*

Navigation menu