20
ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011 assignprelim.1 Assignment Preliminaries ITCS 6010/8010 Spring 2011

ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011assignprelim.1 Assignment Preliminaries ITCS 6010/8010 Spring 2011

Embed Size (px)

Citation preview

Page 1: ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011assignprelim.1 Assignment Preliminaries ITCS 6010/8010 Spring 2011

ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011 assignprelim.1

Assignment Preliminaries

ITCS 6010/8010Spring 2011

Page 2: ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011assignprelim.1 Assignment Preliminaries ITCS 6010/8010 Spring 2011

coit-grid01-4 each dual Xeon processors(3.4Ghz) 8GB main memory

coit-grid05 -- Four quad-core Xeon processors (2.93Ghz)64GB main memory1.2 TB disk

coit-grid01

coit-grid01.uncc.edu – coit-grid06.uncc.edu

switch

coit-grid05

coit-grid03

coit-grid02

coit-grid04

All user’s home directories on coit-grid05 (NFS)

Computer system used for course

coit-grid06

NVIDIA Tesla GPU

(448 core Fermi)

Login from within the campus onlyLogin from

off-campus

Page 3: ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011assignprelim.1 Assignment Preliminaries ITCS 6010/8010 Spring 2011

assignprelim.3

Student accounts on computer systems

• Most programming assignments will be done on coit-grid06 GPU server.

• Account details will be sent by email.

Changing your password

You have to log onto coit-grid02 to change your password for it to take effect and be propagated to all servers in the cluster.  There may be a time delay for that to happen.

Command to change password passwd

Page 4: ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011assignprelim.1 Assignment Preliminaries ITCS 6010/8010 Spring 2011

assignprelim.4

• Traditional way from a Windows system is to use PuTTY for a command line remote access.

Remote Access

coit-grid01.uncc.edu

Select ssh

Obtain from:

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html (Search on PuTTy)

Page 5: ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011assignprelim.1 Assignment Preliminaries ITCS 6010/8010 Spring 2011

File transfers and editing

• Convenient to use WinSCP as well as Putty or instead of Putty

assignprelim.5

Obtain from: http://winscp.net/eng/index.php

Page 6: ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011assignprelim.1 Assignment Preliminaries ITCS 6010/8010 Spring 2011

Editor

• Once logged onto server, can use various Linux editors.

• nano is easy (although does not highlight C syntax)

assignprelim.6

Page 7: ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011assignprelim.1 Assignment Preliminaries ITCS 6010/8010 Spring 2011

assignprelim.7

Linux systemIt turns out that often it is more convenient to use Linux system, especially if you are forwarding graphics.

Cygwin can be installed on a Windows system to run native Linux applications including shells.

Very large if whole package installed. Find from: http://cygwin.com/

Probably best if you intend to forward graphics (see assignments) as it comes with an X11 server (XWin) and a command line terminal X client (Xterm)

Page 8: ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011assignprelim.1 Assignment Preliminaries ITCS 6010/8010 Spring 2011

assignprelim.8

Start Xterm (should also start X server)

Check X server running

with xclock

Page 9: ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011assignprelim.1 Assignment Preliminaries ITCS 6010/8010 Spring 2011

Connecting to coit-grid06.uncc.edu• You cannot connect to coit-grid06.uncc.edu

from off-campus because of a firewall

• So you will need to ssh into coit-grid01 and then ssh from coit-grid01 to coit-grid06

• From command line, type:

ssh coit-grid06.uncc –l username -X

assignprelim.9

-l option if a different username

-X option if need X11 forwarding

Page 10: ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011assignprelim.1 Assignment Preliminaries ITCS 6010/8010 Spring 2011

PCs with GPUs installedLab 335

Windows XP computers in Woodward lab room 335 have mid-level NVIDIA GPUs installed and can also be used for testing. Use Microsoft Visual Studio – more details in assignment.

Your own PC with a NVIDIA GPU installedYou can also do work using your own computer if it has a NVIDIA GPU installed – you will need to install NVIDA software and Visual Studio.

(New) Mac Pro’sHas NVIDIA GPU installed. You will still need to install NVIDA software Use basically as a Linux system.

assignprelim.10

Page 11: ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011assignprelim.1 Assignment Preliminaries ITCS 6010/8010 Spring 2011

assignprelim.11

Moodle will be used for submitting assignments and for multiple-choice class tests.

Access is through 49er Express or

http://moodle.uncc.edu/

A link is provided from the course home page:

Make sure you use a recent browser.

Class tests and assignment submission

Page 12: ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011assignprelim.1 Assignment Preliminaries ITCS 6010/8010 Spring 2011

MoodleSelect the combined course:ITCS-6010-091:ITCS-8010-091_Combined (201110)

For Moodle, Mozilla Firefox seems better than Internet Explorer (some layout issues with Explorer)

Page 13: ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011assignprelim.1 Assignment Preliminaries ITCS 6010/8010 Spring 2011

assignprelim.13

It is important to submit assignments on time so there will be a penalty for late assignments of 10%/day.

Page 14: ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011assignprelim.1 Assignment Preliminaries ITCS 6010/8010 Spring 2011

assignprelim.14

• You name!• Identify each part in the assignment you did• Give your code with an explanation.• Show that your programs work by taking screen

shots and include these screen shots in the document.– To include screen shots from Windows XP, select

window, press Alt-Printscreen, and paste to source file.– Specific screen shots may be requested in the

assignment write-up and must be present and identified.

What to put in document for each assignment

Page 15: ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011assignprelim.1 Assignment Preliminaries ITCS 6010/8010 Spring 2011

assignprelim.15

You can produce the source document in any format (Word etc.) BUT only submit a single PDF document.

No other format accepted.

IT MUST BE A SINGLE PDF FILE

Creating PDF: Adobe PDF print driver, my approach (or “save as PDF” may be available or use a free converter such as pdf995).

Document format

Page 16: ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011assignprelim.1 Assignment Preliminaries ITCS 6010/8010 Spring 2011

• DO NOT SUBMIT MULTIPLE FILES.

• YOU CAN MAKE A RE-SUBMISSION THAT REPLACE THE PREVIOUS SUBMISSION BEFORE THE DEADLINE.

DO NOT SUBMIT TO ME BY EMAIL UNLESS I SPECIFICALLY ASK YOU TO DO SO!!

I WILL IGNORE THE EMAIL.

Page 17: ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011assignprelim.1 Assignment Preliminaries ITCS 6010/8010 Spring 2011

• SUBMIT ONLY ONE UNCOMPRESSED PDF FILE TO MOODLE, OTHERWISE:

Page 18: ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011assignprelim.1 Assignment Preliminaries ITCS 6010/8010 Spring 2011

assignprelim.18

Each assignment will have posted due date posted on the course home page:

http://www.cs.uncc.edu/~abw/ITCS6010S11/

which is firm unless you have documented system problems.

Due Date

Page 19: ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011assignprelim.1 Assignment Preliminaries ITCS 6010/8010 Spring 2011

Course Assistance

Teaching course assistant

• Jeremy Villalobos (PhD student):

[email protected]

Contact on matters such as user accounts or system not functioning.

Contact Instructor for matters such as course materials and assignment write-up.

Page 20: ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011assignprelim.1 Assignment Preliminaries ITCS 6010/8010 Spring 2011

Questions