第5回お試しアカウント付き並列プログラミング講習会

Similar documents
double float

2 1. Ubuntu 1.1 OS OS OS ( OS ) OS ( OS ) VMware Player VMware Player jp/download/player/ URL VMware Plaeyr VMware

Condition DAQ condition condition 2 3 XML key value

£Ã¥×¥í¥°¥é¥ß¥ó¥°ÆþÌç (2018) - Â裵²ó ¨¡ À©¸æ¹½Â¤¡§¾ò·ïʬ´ô ¨¡

r07.dvi

ohp07.dvi

debug ( ) 1) ( ) 2) ( ) assert, printf ( ) Japan Advanced Institute of Science and Technology

mstrcpy char *mstrcpy(const char *src); mstrcpy malloc (main free ) stdio.h fgets char *fgets(char *s, int size, FILE *stream); s size ( )

C

(K&R 2.9) ~, &,, >>, << 2. (K&R 5.7) 3. (K&R 5.9) 4. (K&R 5.10) (argc argv atoi(), atof() ) 5. (K&R 7.5) (K&R 7.6) - FILE, stdin, stdout, std

プログラミング及び演習 第1回 講義概容・実行制御

Microsoft Word - C.....u.K...doc

II 3 yacc (2) 2005 : Yacc 0 ~nakai/ipp2 1 C main main 1 NULL NULL for 2 (a) Yacc 2 (b) 2 3 y

A/B (2018/10/19) Ver kurino/2018/soft/soft.html A/B

Microsoft Word - 小島秀規2.doc

para02-2.dvi

untitled

untitled

programmingII2019-v01

Original : Hello World! (0x0xbfab85e0) Copy : Hello World! (0x0x804a050) fgets mstrcpy malloc mstrcpy (main ) mstrcpy malloc free fgets stream 1 ( \n

Torqueユーザーマニュアル

I 2 tutimura/ I 2 p.1/??

PC Windows 95, Windows 98, Windows NT, Windows 2000, MS-DOS, UNIX CPU

ex01.dvi

/ SCHEDULE /06/07(Tue) / Basic of Programming /06/09(Thu) / Fundamental structures /06/14(Tue) / Memory Management /06/1

memo

main main Makefile Makefile C.5 Makefile Makefile Makefile A Mech (TA ) 1. Web ( iku

Microsoft Word - TORQUE利用の手引きver1.1.doc

Quartus II ハンドブック Volume 5、セクションIV. マルチプロセッサの調整

超初心者用

和佐田 裕昭P indd

slide5.pptx

AutoTuned-RB


SystemC言語概論

プログラミング及び演習 第1回 講義概容・実行制御

273? C

Introduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for

memo

橡Pro PDF

( CUDA CUDA CUDA CUDA ( NVIDIA CUDA I

joho07-1.ppt

新・明解C言語 実践編

1.ppt

yacc.dvi

NUMAの構成

£Ã¥×¥í¥°¥é¥ß¥ó¥°ÆþÌç (2018) - Â裶²ó ¨¡ À©¸æ¹½Â¤¡§·«¤êÊÖ¤· ¨¡

113_0405.indd


WinHPC ppt

Microsoft PowerPoint - 10Com2.ppt

18 C ( ) hello world.c 1 #include <stdio.h> 2 3 main() 4 { 5 printf("hello World\n"); 6 } [ ] [ ] #include <stdio.h> % cc hello_world.c %./a.o

1st-session key

II ( ) prog8-1.c s1542h017%./prog8-1 1 => 35 Hiroshi 2 => 23 Koji 3 => 67 Satoshi 4 => 87 Junko 5 => 64 Ichiro 6 => 89 Mari 7 => 73 D

ex01.dvi

ex12.dvi

untitled

新版明解C言語 実践編

ohp03.dvi

エラー処理・分割コンパイル・コマンドライン引数

C言語によるアルゴリズムとデータ構造

file:///D|/C言語の擬似クラス.txt

分割コンパイル (2018 年度 ) 担当 : 笹倉 佐藤 分割コンパイルとは 一つのプログラムのソースを複数のソースファイルに分けてコンパイルすること ある程度大きなプログラムの場合ソースファイルをいくつかに分割して開発するのが普通 1

大統一Debian勉強会 gdb+python拡張を使ったデバッグ手法

目 目 用方 用 用 方

P05.ppt

IP L09( Tue) : Time-stamp: Tue 14:52 JST hig TCP/IP. IP,,,. ( ) L09 IP (2017) 1 / 28

LAN Copyright c Daikoku Manabu This tutorial is licensed under a Creative Commons Attribution 2.1 Japan License

slide4.pptx

_H

tuat1.dvi

r08.dvi

Intel® Compilers Professional Editions

2 Eclipse 2.1 Eclipse 1. Eclipse 2. 3 ( 4) E:Yworkspace OK 3 Eclipse 4 3. Eclipse 5 5 Eclipse Eclipse 2. 7 C 2

RubyKaigi2009 COBOL

syspro-0405.ppt

ohp08.dvi


Nios® II HAL API を使用したソフトウェア・サンプル集 「Modular Scatter-Gather DMA Core」

ohp11.dvi

r11.dvi

2008 ( 13 ) C LAPACK 2008 ( 13 )C LAPACK p. 1

1 return main() { main main C 1 戻り値の型 関数名 引数 関数ブロックをあらわす中括弧 main() 関数の定義 int main(void){ printf("hello World!!\n"); return 0; 戻り値 1: main() 2.2 C main

CM-3G 周辺モジュール拡張技術文書 MS5607センサ(温度、気圧)

44 6 MPI 4 : #LIB=-lmpich -lm 5 : LIB=-lmpi -lm 7 : mpi1: mpi1.c 8 : $(CC) -o mpi1 mpi1.c $(LIB) 9 : 10 : clean: 11 : -$(DEL) mpi1 make mpi1 1 % mpiru

RTX830 取扱説明書

untitled

1 $ cat aboutipa 2 IPA is a Japanese quasi-government 3 organization established in accor- 4 dance with The Law for Information 5 Processing Technolog

±é½¬£²¡§£Í£Ð£É½éÊâ

file"a" file"b" fp = fopen("a", "r"); while(fgets(line, BUFSIZ, fp)) {... fclose(fp); fp = fopen("b", "r"); while(fgets(line, BUFSIZ, fp)) {... fclose

MINI2440マニュアル

1 1.1 C 2 1 double a[ ][ ]; 1 3x x3 ( ) malloc() 2 double *a[ ]; double 1 malloc() dou

program.dvi

情報処理概論(第二日目)

tutorial_lc.dvi

1 ( ) 1.1 (convert.sh) (18GHz 26GHz) C (convert.c, convert1.c) mesure-ryudai convert.sh #!/bin/sh # file1 file1= ls -1 $1 # file1 data for data in $fi

I. Backus-Naur BNF S + S S * S S x S +, *, x BNF S (parse tree) : * x + x x S * S x + S S S x x (1) * x x * x (2) * + x x x (3) + x * x + x x (4) * *

C B

OpenMP¤òÍѤ¤¤¿ÊÂÎó·×»»¡Ê£±¡Ë

Microsoft Word - Meta70_Preferences.doc

Transcription:

qstat -l ID (qstat -f) qscript ID BATCH REQUEST: 253443.batch1 Name: test.sh Owner: uid=32637, gid=30123 Priority: 63 State: 1(RUNNING) Created at: Tue Jun 30 05:36:24 2009 Started at: Tue Jun 30 05:36:27 2009 Remain : 14 minutes 47 seconds QUEUE Name: lecture5 RESOURCES Per-proc. CPU time limit = UNLIMITED warning = 0 seconds Per-req. CPU time limit = UNLIMITED warning = 0 seconds Per-proc. core file size limit= 0 kilobytes Per-proc. data size limit = 28 gigabytes warning = 0 kilobytes Per-proc. perm file size limit= UNLIMITED warning = 0 kilobytes Per-proc. memory size limit = 28 gigabytes Per-req. memory size limit = 28 gigabytes Per-proc. stack size limit = 2 gigabytes Per-proc. volafile size limit = 0 kilobytes Per-req. volafile size limit = 0 kilobytes Per-proc. working set limit = 28 gigabytes Per-req. etime limit = 15 minutes warning = 0 seconds Per-proc. execution nice pri. = 0 FILES Stderr: None Stdout: None stderr to stdout: No MAIL Address: t25002@ha8000-3.cc.u-tokyo.ac.jp When: MISC Partition: None Node: 1 Jobtype: T1 Rerunnable: Yes Performance information: Yes Shell: None Account name: f Qsub at: /nfs/all/t25002 qsub -N 2 -q debug

#include <stdio.h> int main(int argc, char** argv) { printf("hello, world! n"); return 0; } hello: hello.c gcc -o hello hello.c $ make hello gcc -o hello hello.c $ make hello make: `hello' is up to date.

make make X #include <stdio.h> void hello(void) { printf("hello, world! n"); } $ make gcc -c hello.c gcc -c main.c gcc -o hello hello.o main.o void hello(void); int main(int argc, char** argv) { hello(); return 0; : world! world!! } hello: hello.o main.o gcc -o hello hello.o main.o hello.o: hello.c gcc -c hello.c $ make main.o: main.c gcc -c hello.c gcc -c main.c gcc -o hello hello.o main.o

$ make -f test.mk hello: hello.o main.o gcc -g -Wall -O3 -o hello hello.o main.o.phony: clean clean: (clean ) rm f hello hello.o main.o OBJECTS=main.o hello.o hello: $(OBJECTS) ${OBJECTS} $OBJECTS $(O)BJECTS CFLAGS=$(INCLUDES) -O -g INCLUDES=-Idir1 -Idir2 CFLAGS -Idir1 -Idir2 -O -g

test1: @echo Test message test2: -rm file1 file2 file3 hello: $(OBJECTS) ifeq ($(CC),gcc) $(CC) -o hello $(OBJECTS) $(LIBS_FOR_GCC) else $(CC) -o hello $(OBJECTS) $(LIBS_FOR_OTHERCC) endif ifeq ($(CC),gcc) LIBS=$(LIBS_FOR_GCC) else LIBS=$(LIBS_FOR_OTHERCC) endif VALUE=$(subst xx,yy,aaxxbb) VALUE aayybb CONTENTS=$(shell cat data.txt) CONTENTSdata.txt SECOND=$(word 2, This is a pen) SECOND=is CDR=$(wordlist 2,$(words $(LIST)), $(LIST)) CDR$LIST 2 hello: hello.o main.o gcc -o hello hello.o main.o hello.o: hello.c gcc -c hello.c main.o: main.c gcc -c main.c CC=gcc OBJECTS=hello.o main.o hello: $(OBJECTS) $(CC) -o $@ $+ hello.o: hello.c $(CC) -c $< main.o: main.c $(CC) -c $<

%.o : %.c $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@ hello: hello.o main.o gcc -o hello hello.o main.o hello.o: hello.c gcc -c hello.c main.o: main.c gcc -c main.c CC=gcc OBJECTS=hello.o main.o hello: $(OBJECTS) $(CC) -o $@ $+ %.o: %.c $(CC) -c $< DATE1 = $(shell date) DATE2 := $(shell date) DATE3 = `date` DATE4 := `date` 2 test: echo $(DATE1) sleep 1 echo $(DATE1)

all: a b a: a.c $(CC) a.c -o a b: b.c $(CC) b.c -o b FILE_IDS := $(shell seq 1 10) FILES := $(FILE_IDS:%=%.dat) all: $(FILES) %.dat: sleep 5 touch $@ make -j

http://www.logos.t.u-tokyo.ac.jp/gxp http://sourceforge.net/projects/gxp $ cd /nfs/all/$user $ cvs -d :pserver:anonymous@gxp.cvs.sourceforge.net:/cvsroot/ gxp co gxp3