Lab Practice 08: Parallel programming. Create simple examples of code to launch several jobs that will run in parallel

Similar documents
10- High Performance Compu5ng

Using Internet or Windows Explorer to Upload Your Site

Working with Office Applications and ProjectWise

ICONICS Using the Azure Cloud Connector

To install Multifront you need to have familiarity with Internet Information Services (IIS), Microsoft.NET Framework and SQL Server 2008.

Installation Guide. Installing MYOB AccountRight in a Remote Desktop Services Environment

INUVIKA OPEN VIRTUAL DESKTOP FOUNDATION SERVER

educ Office Remove & create new Outlook profile

Remote Desktop Web Access. Using Remote Desktop Web Access

Migrating helpdesk to a new server

Zanibal Plug-in For Microsoft Outlook Installation & User Guide Version 1.1

Portal Instructions for Mac

USER CONFERENCE 2011 SAN FRANCISCO APRIL Running MarkLogic in the Cloud DEVELOPER LOUNGE LAB

How to install and use the File Sharing Outlook Plugin

PaperStream Connect. Setup Guide. Version Copyright Fujitsu

TriCore Secure Web Gateway User Guide 1

User guide. Business

PCVITA Express Migrator for SharePoint (File System) Table of Contents

Non-ThinManager Components

MICROSOFT STEP BY STEP INTERACTIVE VERSION 3.0 ADMINISTRATION GUIDE

Stellar Phoenix Exchange Server Backup

QUANTIFY INSTALLATION GUIDE

Installing Windows Server Update Services (WSUS) on Windows Server 2012 R2 Essentials

The full setup includes the server itself, the server control panel, Firebird Database Server, and three sample applications with source code.

How to remotely access your Virtual Desktop from outside the college using VMware View Client. How to guide

Census. di Monitoring Installation User s Guide

ATTENTION: End users should take note that Main Line Health has not verified within a Citrix

Access and Login. Single Sign On Reference. Signoff

How to use SURA in three simple steps:

Virtual Owl. Guide for Windows. University Information Technology Services. Training, Outreach, Learning Technologies & Video Production

vtiger Customer Portal 4.2 User Manual

Unity Error Message: Your voic box is almost full

NetSupport DNA Configuration of Microsoft SQL Server Express

NSave Table of Contents

Integration Overview. Web Services and Single Sign On

Interact for Microsoft Office

Knowledge Base Article: Article 218 Revision 2 How to connect BAI to a Remote SQL Server Database?

Publish Cisco VXC Manager GUI as Microsoft RDS Remote App

Windows Intune Walkthrough: Windows Phone 8 Management

If you are you are using Microsoft outlook 2007, then new toolbar will be added below the Outlook menu bar,

Qlik Sense Cloud. Qlik Sense Copyright QlikTech International AB. All rights reserved.

Microsoft SQL Server 2005 How to Create and Restore Database (GRANTH3) Manually

BlackBerry Enterprise Service 10. Secure Work Space for ios and Android Version: Security Note

OneDrive Using Office Documents

Remedy ITSM Service Request Management Quick Start Guide

NETWRIX CHANGE NOTIFIER

The VHD is separated into a series of WinRar files; they can be downloaded from the following page:

Wavecrest Certificate

Connecticut Hazardous Waste Manifests Database

Subscribe to RSS in Outlook Find RSS Feeds. Exchange Outlook 2007 How To s / RSS Feeds 1of 7

MAPILab Search for Exchange. Administrator s Guide. Version 1.3

Virtual Appliance Setup Guide

Setting up of scheduling is system dependant, here you will find notes on configuring scheduling under the following systems:

Pearl Echo Installation Checklist

This presentation introduces you to the Decision Governance Framework that is new in IBM Operational Decision Manager version 8.5 Decision Center.

IIS, FTP Server and Windows

1. Begin by opening XenCenter to manage the assigned XenServer.

+27O.557+! RM Auditor Additions - Web Monitor. Contents

Kony MobileFabric Messaging. Demo App QuickStart Guide. (Building a Sample Application

Installation Guide v3.0

FaxCore Ev5 Database Migration Guide :: Microsoft SQL 2008 Edition

CYCLOPE let s talk productivity

1. Application Overview System Requirements Installation Splash Screen Registration Screen...

How To Run Eve 5 On A Pc Or Mac Or Ipad (For Pc Or Ipa) On A Network (For Mac) On Your Computer Or Ipro (For Ipro) On An Ipro Or Ipo (For Windows)

Using Microsoft Visual Studio API Reference

Out n About! for Outlook Electronic In/Out Status Board. Administrators Guide. Version 3.x

Xopero Backup Build your private cloud backup environment. Getting started

System Center 2012 R2 SP1 Configuration Manager & Microsoft Intune

Expresso Quick Install

Support System User Guide

VisiCount Installation. Revised: 8/28/2012

Schools Remote Access Server

RFMS, INC. Reference Library Documentation. Version 10 Conversion Manual. Microsoft SQL

Windows Mail POP Instructions - Bloomsburg University Students

Jolly Server Getting Started Guide

Getting Microsoft Outlook and Salesforce in Sync

DOCUMENT MANAGEMENT SYSTEM

Guide to Using Citrix at SLU (Windows)

USC Marshall School of Business ShareFile_With_Outlook_Client_v2.docx 6/12/13 1 of 9

Active Directory Integration for Greentree

JMC Next Generation Web-based Server Install and Setup

PCVITA Express Migrator for SharePoint(Exchange Public Folder) Table of Contents

IBM Support Assistant v5. Review and hands-on by Joseph

Test Automation Integration with Test Management QAComplete

Windows Server Update Services 3.0 SP2 Step By Step Guide

Microsoft Exchange Hosted Archive (MEHA)

Outlook Profile Setup Guide Exchange 2010 Quick Start and Detailed Instructions

Honeywell Secure External User Guide August 2013

High-Performance Computing

File Transfer with Secure FTP

Student Microsoft Office 365

McAfee Enterprise Edition v Installation & Configuration For Windows 98 and Me

Eliminate Memory Errors and Improve Program Stability

MOODLE Installation on Windows Platform

Mapping ITS s File Server Folder to Mosaic Windows to Publish a Website

GMS. 1 Create the virtual machine 2 Configure the virtual machine 3 Configure the virtual GMS server. Quick Start Guide. Microsoft Hyper-V Hypervisor

VCW FTP Microsoft Outlook Add-In Configuration and Implementation

How to install phpbb forum on NTU student club web server

SQL Server 2005 Advanced settings

Issue Tracking Anywhere Installation Guide

Transcription:

Advanced Computing Tools for Applied Research Lab Practice 08: Parallel programming Create simple examples of code to launch several jobs that will run in parallel Measure computing power Using Matlab compute a matrix multiply and measure execution time. You me use the following code: sz=1000; %8 MB per matrix v1=rand(sz,sz); v2=rand(sz,sz); fprintf('begin loop...'); tic for i=1:100 res=v1*v2; end t=toc; %Computing times ta=t/100; %time per vector add fprintf('vector size: %f\n',sz); fprintf('time per vector add: %f s\n',ta); fprintf('performance: %f MFLOPS\n',2*sz*sz*sz/ta/1e6); If this code is executed in a multi- core system check if Matlab is using all your cores. Other functions are also already implemented to use all cores (FFT, fmins with option UseParallel, sort, etc.) Starting Matlab with the following command disables multithreading: matlab -singlecompthread C with MPI Download and install MPI from: http://www.mcs.anl.gov/research/projects/mpich2/ There is a demo called cpi.exe to test running C programs in parallel with MPI Execute bin/mpiregister and provide login and password Execute bin/mpiexec Set number of processes Load examples/cpi.exe Use Task Manager to monitor the use of CPU cores, and the number of tasks. Advanced users: To create a new applications with Visual Studio 2008 Create a project type: C++, Win32, console Configure libraries in Project/properties/ Configuration: c/c++, general: add folder C:\Archivos de programa\mpich2\include Configuration: link, general: add folder C:\Archivos de programa\mpich2\lib Configuration: link, inputs: add library: mpi.lib

Matlab with pmatlab Download pmatlab from Lincoln Lab unzip pmatlab cd pmatlab startup.m (or at least execute addpath.\matmpi) cd examples cd mandelbrot run pmandelbrot: eval(prun('pmandelbrot',1{})); %1 core eval(prun('pmandelbrot',4{})); %4 cores The outputs of all children processes are called MatMPI/*.out Matlab with Parallel Computing Toolbox (This toolbox is not available in the lab) matlabpool(4) %starts 4 cores (5 Matlab processes can be seen) sz=2000000; %16MB vector v=rand(sz,2); res=zeros(sz,2); %for memory allocation tic parfor i=1:2 res(:,i)=sort(v(:,i)); %each iteration independent of the previous end toc matlabpool close %back to normal (when you are done)

Using Microsoft Azure 1- Sign up in www.microsoftazurepass.com using your access codes. You get an Azure pass valid for 180 days. For this step you need your comillas.edu account linked to live.com or you will need to create a new account. Don t ask me why Microsoft is not able to link your Azure pass code to your comillas.edu account. It may work for some people. 2- Access to portal.azure.com and create a Web App. When you access portal.azure.com make sure that it is using the account where the azure pass code was linked. You may need to logout from your account (azure tends to log you in using your comillas.edu account) then log in again with the right account. Hit the + icon to create a new application. Select Web+Mobile à Web App You will be asked for the URL, you may use your name. Than will be the URL of you website. If you are asked about the payment mode, you must select Azure PASS. If such options doesn t appear is because you are using an account not linked to you Azure Code. 2- Test your application Now that your applications has been created, it will appear on the mail screen of portal.azure.com

When you click on the Application you get all the information related to it: 3- Edit your application The new Azure interface portal.azure.com doesn t include Monaco web- based editor by default. To install Monaco Visual Studio Online, select the application, then settings à Extensions Hit Add, then select Visual Studio Online: Now that the extension has been installed, it is easy to add and edit files in the server. Go to you App, then settings à Extensions à Visual Studio Online à Browse You get a new browser tab where you can create new files or folders, and where you can edit any file. Reload your App URL to test the changes. 4- Measure performace Create a php file, for example program.php, with the following code: <?php print("begining of program:"); print("<br>"); $t=time(); for ($i=0; $i<10; $i++) { for ($j=0; $j<1000000; $j++) { $x=pow(234.55,1.0123456); } } print("end of program: "); print("<br>"); $elapsed=time()-$t; print("time: ".$elapsed." s<br>");?>

To execute the program use the web browser to access your URL followed by /program.php After a few seconds you will get on the screen a message with the elapsed time In theory it will be possible to change the server architecture, for example from the default S1 to a more advanced P2: As of April/2015 we are getting error while trying to change architecture, however it is possible to create a new Web App defining a more advanced architecture. That way you can have two Web Apps running at the same time and you can compare results Using a 2 core architecture, execution time does not change if reloading two browser tabs at the same time, since each process will be executed in a different core. On the other hand, in a single core server the execution time is duplicated if we reload the same page from two browser tabs at the same time.