C ENTER FOR I NTEGRATED R ESEARCH C OMPUTING MATLAB

Slides:



Advertisements
Similar presentations
HCC Workshop Department of Earth and Atmospheric Sciences September 23/30, 2014.
Advertisements

AE4131 ABAQUS Lecture Part III
Project 1: Guide EE232 3/30/2015. Connection Options Class Account (a bit slow): – hpse-12.eecs, hpse-13.eecs, hpse-14.eecs, hpse- 15.eecs Device group.
Distributed Object System. Project Goals Develop a distributed system for performing time-consuming calculations. Load Balancing support. Fault Tolerance.
1 Using Workspaces to Develop Simulation Tools Michael McLennan Software Architect HUBzero™ Platform for Scientific Collaboration This work licensed under.
Terminal Services Terminal Services is the modern equivalent of mainframe computing, in which servers perform most of the processing and clients are relatively.
LECTURE 14 Operating Systems and Utility Programs
HPCC Mid-Morning Break Interactive High Performance Computing Dirk Colbry, Ph.D. Research Specialist Institute for Cyber Enabled Discovery.
Unix Presentation. What is an Operating System An operating system (OS) is a program that allows you to interact with the computer -- all of the software.
Guide to MCSE , Enhanced 1 Activity 10-1: Restarting Windows Server 2003 Objective: to restart Windows Server 2003 Start  Shut Down  Restart Configure.
HCC Workshop August 29, Introduction to LINUX ●Operating system like Windows or OS X (but different) ●OS used by HCC ●Means of communicating with.
4 1 Operating System Activities  An operating system is a type of system software that acts as the master controller for all activities that take place.
WORK ON CLUSTER HYBRILIT E. Aleksandrov 1, D. Belyakov 1, M. Matveev 1, M. Vala 1,2 1 Joint Institute for nuclear research, LIT, Russia 2 Institute for.
 Introduction to Operating System Introduction to Operating System  Types Of An Operating System Types Of An Operating System  Single User Single User.
LINUX System : Lecture 2 OS and UNIX summary Bong-Soo Sohn Assistant Professor School of Computer Science and Engineering Chung-Ang University Acknowledgement.
Objectives Understand what MATLAB is and why it is widely used in engineering and science Start the MATLAB program and solve simple problems in the command.
Distributed Systems Fall 2014 Zubair Amjad. Outline Motivation What is Sqoop? How Sqoop works? Sqoop Architecture Import Export Sqoop Connectors Sqoop.
Otasuke GP-EX! Chapter 11 GP-Viewer EX
Compiled Matlab on Condor: a recipe 30 th October 2007 Clare Giacomantonio.
Debugging and Profiling GMAO Models with Allinea’s DDT/MAP Georgios Britzolakis April 30, 2015.
Itty Bitty Computer Directions on how to install Linux on your flash drive and have the smallest computer you can afford right now!
Parallel Computing with Matlab CBI Lab Parallel Computing Toolbox TM An Introduction Oct. 27, 2011 By: CBI Development Team.
1 Computer Programming (ECGD2102 ) Using MATLAB Instructor: Eng. Eman Al.Swaity Lecture (1): Introduction.
MCTS Guide to Microsoft Windows Server 2008 Applications Infrastructure Configuration (Exam # ) Chapter Four Windows Server 2008 Remote Desktop Services,
Module 9: Preparing to Administer a Server. Overview Introduction to Administering a Server Configuring Remote Desktop to Administer a Server Managing.
Guide to Linux Installation and Administration1 Chapter 4 Running a Linux System.
Remote Administration Remote Desktop Remote Desktop Gateway Remote Assistance Windows Remote Management Service Remote Server Administration Tools.
240-Current Research Easily Extensible Systems, Octave, Input Formats, SOA.
ITC Research Computing Support Using Matlab Effectively By: Ed Hall Research Computing Support Center Phone: Φ Fax:
Lecture 20: Choosing the Right Tool for the Job. What is MATLAB? MATLAB is one of a number of commercially available, sophisticated mathematical computation.
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
Visual Basic for Application - Microsoft Access 2003 Finishing the application.
CSC190 Introduction to Computing Operating Systems and Utility Programs.
© 2015 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner.
Exploring Spyder: An IDE for scientific computing
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 2 : Matlab - Getting Started.
Geo II/3 ch 4 Edited 10/14/05 1 Prior to going outside with your GPS rover to collect data for your school map, you must load a data dictionary onto your.
File and File Systems Compiled by IITG Team Need to be reorganized and reworded.
Advanced topics Cluster Training Center for Simulation and Modeling September 4, 2015.
Scaling up R computation with high performance computing resources.
Using ROSSMANN to Run GOSET Studies Omar Laldin ( using materials from Jonathan Crider, Harish Suryanarayana ) Feb. 3, 2014.
Presented by Dave Mawdsley, DACS Linux Workshop Leader/Member
Innovation Intelligence ® 1 Chapter 2: The HyperWorks Desktop Environment.
Advanced Computing Facility Introduction
Interacting with the cluster ssh, sftp, & slurm batch scripts
Workstations & Thin Clients
The new dialup procedure requires the use of the EVPN client software to establish an active connection to the Lockheed Martin network. After January 31st,
The Distributed Application Debugger (DAD)
GRID COMPUTING.
Presented by Dave Mawdsley, DACS Linux Workshop Leader/Member
Module 9: Preparing to Administer a Server
Assumptions What are the prerequisites? … The hands on portion of the workshop will be on the command-line. If you are not familiar with the command.
Python Lesson 12 Mr. Kalmes.
Windows – File System There is a different file system for each hardware device The different file systems are identified at the root by an alpha character.
Getting Started with R.
FTP Lecture supp.
Appendix B MathScript Basics
ASU Saguaro 09/16/2016 Jung Hyun Kim.
Joker: Getting the most out of the slurm scheduler
Guide To UNIX Using Linux Third Edition
File Transfer Olivia Irving and Cameron Foss
College of Engineering
Use of Mathematics using Technology (Maltlab)
CCR Advanced Seminar: Running CPLEX Computations on the ISE Cluster
High Performance Computing in Bioinformatics
funCTIONs and Data Import/Export
SUSE Linux Enterprise Desktop Administration
The Main Features of Operating Systems
Scripts In Matlab.
Module 9: Preparing to Administer a Server
Presentation transcript:

C ENTER FOR I NTEGRATED R ESEARCH C OMPUTING MATLAB

Outline Part I – Interacting with Matlab Running Matlab interactively from the command line Submitting batch jobs to Matlab Matlab scripts, functions, paths. Accessing the GUI environment Part II – Speeding up Matlab Computations Using the Code Profiler and the Code Analyzer Symmetric Multi-Processing with Matlab Accelerating Matlab computations with GPUs Running Matlab in distributed memory environments Part III – Mixing Matlab and Fortran/C code Compiling MEX code from C/Fortran Turning Matlab routines into C code

Running Matlab interactively from the command line module load matlab srun -t 60 --pty matlab –nodesktop

Submitting Batch Jobs sbatch matlab.slurm nprimes=0; primes=[]; for i=2:100 if (all(mod(i,primes(1:nprimes)) ~= 0)) nprimes=nprimes+1; primes(nprimes)=i; end primes example1.m #!/bin/bash #SBATCH -t 60 module load matlab matlab -r "example1" matlab.slurm

Submitting Batch Jobs sbatch matlab2.slurm  Can also use 'here files' to pass commands to matlab via standard in #!/bin/bash #SBATCH -t 60 module load matlab matlab <<EOF nprimes=0; primes=[]; for i=2:100 if (all(mod(i,primes(1:nprimes)) ~= 0)) nprimes=nprimes+1; primes(nprimes)=i; end primes EOF matlab2.slurm

Submitting Batch Jobs sbatch matlab3.slurm  Or you can put the entire program in quotes.  Use commas to separate lines that you want the results from  We are using the back slash \ as a line continuation character for bash. #!/bin/bash #SBATCH -t 60 module load matlab matlab -r " \ nprimes=0; \ primes=[]; \ for i=2:100; \ if (all(mod(i,primes(1:nprimes)) ~= 0)); \ nprimes=nprimes+1; \ primes(nprimes)=i; \ end; \ primes \ " matlab3.slurm

Calling Functions or Scripts not in your cwd You can use the addpath command before calling scripts or functions. #!/bin/bash #SBATCH -t 60 module load matlab matlab -r "addpath('/public/jcarrol5/matlab'); example1" /home/jcarrol5/matlab5.slurm

Exercise 1 Run the following matlab program on bluehive to approximate the value of pi. (or one of your own programs) N=1e6 x=rand(N,1) y=rand(N,1) pi_approx=sum(x.^2+y.^2 < 1)/N*4.0

Accessing the GUI features To use Matlab's GUI you must connect through suitable environment Both MobaXterm (Windows) and Terminal (Mac/Linux) support X11 forwarding necessary for accessing the Matlab GUI. X2go provides a remote desktop session within the BlueHive custer. Why X2go?  Faster than using X11 forwarding (compresses data)  Has clients for all major operating systems  Saves your session when you are disconnected  You don’t have to restart Matlab if your network connection drops.

Running interactive jobs with X11 forwarding Before we ran the following to launch an interactive matlab session (without the Matlab GUI)  srun -t 60 --pty matlab -nodesktop To use the GUI we have to use the interactive script  interactive -t 60  matlab There is also a 'JobLauncher' utility which you can access through the Gnome Menu Bar

Using the terminal but with GUI support You can connect with X11 forwarding and still start matlab without a desktop  matlab -nodesktop Figure windows will still pop up etc... You can also make plots without a GUI using imagesc(rand(100))); print('-dpdf','-r300','fig1-batch.pdf');

Matlab Code Analyzer and Profiler Matlab has sophisticated tools for analyzing and profiling code. It will often offer suggestions on how to speed up your code.