20140825

1. 영어 기사 읽기
1) India acid attack survivors pose for ‘ground breaking’ photo shoot, CNN
– The photos were first published on Facebook page run by Stop Acid Attacks, an organization raising awareness about the plight of acid attack victims but have since been featured extensively across the world.(plight -역경)
– “We need the government to be active in enforcing the law to regulate acid sales.”
– Fearing social stigma, many do not even show their face in public. (stigma – 오명)

2) Hundreds of Methane Plumes Spotted on Sea Floor, Scientific American
– Plumes of bubbles streaming from hundreds of newly discovered sea-floor seeps between North Carolina and Massachusetts are likely to contain methane and could be adding as much as 90 tonnes of the planet-warming gas to the atmosphere or overlying waters each year, research published Sunday in Nature Geoscience suggests.(seep – 스미다, 배다)
– An estimated two-thirds of the emissions emanate from sediments at depths where methane-rich ices may be decomposing due to warming waters along the ocean bottom, the researchers say.(sediments – 퇴적물)
– Although Skarke and his colleagues suspect that warming waters may be boosting rates of methane emission, the amounts of carbonate minerals seen at some deep sites visited by remotely operated vehicles — which are created by methane-munching microbes and typically accumulate at less than 5 centimetres per 1,000 years — suggest that some of the seeps have been active for a millennium or more. (munching – 오도독오도독)

3) Why Marketers Want to Make You Cry, HBR
– Marketers are getting increasingly sophisticated at tapping into those strong emotions, and they don’t need a full-length feature film to do it. (tap into – ~에 다가가다, ~을 이용하다)
– If you don’t know the answer to that question, or even worse, find that it one that isn’t compelling to you, you can be sure that it won’t make customers feel anything.(compelling – 너무나 흥미로워서 주목하지 않을 수 없는, 강렬한, 설득력 있는)


2. 프로젝트 관련 실험
Native 실험 결과를 정리함. 원하는 결과가 나옴.
VM 실험을 하려는데 잘 되지 않음. Xen이 돌아가지 않음.
Native 실험을 하면서 커널을 교체하는 중에 문제가 생긴 듯함.
급한 일부터 하고자 cacloud20에 Xen 설치하는 것은 보류.


3. gem5-gpu 벤치마크 빌드 및 실행

gem5-gpu의 벤치마크 libopencl이 잘 빌드되지 않음.

$make
g++  -I./ -I/usr/include  -c opencl_runtime_api.cc -o opencl_runtime_api.o
opencl_runtime_api.cc:93: fatal error: CL/cl.h: No such file or directory
compilation terminated.
make: *** [opencl_runtime_api.o] Error 1

opencl-headers를 설치하면 빌드할 수 있다.

$ sudo apt-get install opencl-headers

Parboil의 bfs를 빌드하는 중에 에러가 발생함.

$ g++  main.cu_o -L../../libcuda/ -lcuda \
-L/home/gumdaeng/NVIDIA_GPU_Computing_SDK/C/lib -lcutil_x86_64 -O3 \
-lz  -static -o gem5_fusion_bfs -L/usr/lib64 -L../common -lm -lc -lparboil -L../../libopencl        
../../libcuda//libcuda.a(cuda_runtime_api.o): In function `__cudaRegisterTexture':
/home/gumdaeng/Research/memory/gem5-gpu/benchmarks/libcuda/cuda_runtime_api.cc:1844: undefined reference to `m5_gpu'
collect2: ld returned 1 exit status

opencl 라이브러리를 제대로 링크하지 못하는 것 같아, 이를 해결해주었더니 빌드할 수 있었음.

g++ main.cu_o -L../../libcuda/ -lcuda \
-L/home/gumdaeng/NVIDIA_GPU_Computing_SDK/C/lib -lcutil_x86_64 -O3 \
-lz -static -o gem5_fusion_bfs -L/usr/lib64 -L../common -lm -lc -lparboil -L../../libopencl -lopencl

이를 모든 parboil 벤치마크에 적용하고자, parboil/common/common.mk에 적용함.

EXTRA_OBJS ?= -lopencl
LIB ?= -L/usr/lib64 -L$(PARBOIL_ROOT)/common -L$(GEM5_GPU_BENCHMARKS)/libopencl

벤치마크 두 개를 컴파일 할 수 없었음. (/rodinia/leukocyte, /rodinia/mummergpu)
정섭이 형께서 벤치마크를 실행하고, 파악하라 하셨지만 어떻게 파악할 수 있는지 이해할 수 없음.
벤치마크의 실행 방법, 입력, 출력값이 무엇인지 설명된 문서가 없음.
그냥 결과만 출력할 뿐이다.
/dcmbmk/cmem은 실행 시간이 너무 길어서 모두 확인하지 못함.
/dcmbmk/global은 실행 도중에 abort가 발생함.

panic: ShaderTLB missing translation for vaddr: 0x6ee088006ee080! @pc: 0xb8
 @ tick 152338545
[beginTranslateTiming:build/VI_hammer/src/gpu/shader_tlb.cc, line 89]
Memory Usage: 2425596 KBytes
Program aborted at tick 152338545
[1] 4429 abort (core dumped) build/VI_hammer/gem5.opt ../gem5-gpu/configs/se_fusion.py -c -o 16

/dcmbmk/icache1에서도 실행 도중에 abort가 발생함.

panic: ShaderTLB missing translation for vaddr: 0x4ad000! @pc: 0xffffffffffffffff
@ tick 4289979310
[beginTranslateTiming:build/VI_hammer/src/gpu/shader_tlb.cc, line 89]
Memory Usage: 3772096 KBytes
Program aborted at tick 4289979310
[1] 4836 abort (core dumped) build/VI_hammer/gem5.opt ../gem5-gpu/configs/se_fusion.py -c -o 16

/dcmbmk/icache2에서 실행 중에 abort 발생

panic: ShaderTLB missing translation for vaddr: 0x51ef80! @pc: 0xffffffffffffffff
@ tick 2285840427
[beginTranslateTiming:build/VI_hammer/src/gpu/shader_tlb.cc, line 89]
Memory Usage: 4875644 KBytes
Program aborted at tick 2285840427
[1] 5029 abort (core dumped) build/VI_hammer/gem5.opt ../gem5-gpu/configs/se_fusion.py -c -o 16

/dcmbmk/icache3에서 실행 중에 abort 발생.
/dcmbmk/icache4에서 실행 중에 abort 발생.
/dcmbmk/shared는 너무 오래 실행됨.
/dcmbmk/texture2는 구현되지 않은 함수를 사용해 실행 중단됨.
/dcmbmk/texture4는 구현되지 않은 함수를 사용해 실행 중단됨.

gem5-gpu CUDA: Execution error: CUDA API function "void cudaBindTexture(ThreadContext*, gpusyscall_t*)()" has not been implemented yet.
[gem5-gpu/src/gem5/build/VI_hammer/src/api/cuda_syscalls.cc around line 716]
Program aborted at tick 1881381000
[1] 5297 abort (core dumped) build/VI_hammer/gem5.opt ../gem5-gpu/configs/se_fusion.py -c -o 16

/parboil/dfs는 파일을 입력으로 받는다는 메시지를 출력함.
그런데 어떤 파일을, 어떻게 입력으로 줄 수 있는지 모르겠음.

Expecting one input filename
Exiting @ tick 229569000 because target called exit()

/parboil/cutcp도 파일을 입력으로 받음.
/parboil/fft는 메모리 문제로 프로그램이 종료됨

panic: local memory allocation is untested!
@ tick 70417500
[add_identifier:build/VI_hammer/gpgpu-sim/cuda-sim/ptx_parser.cc, line 433]
Memory Usage: 2423580 KBytes
Program aborted at tick 70417500
[1] 5729 abort (core dumped) build/VI_hammer/gem5.opt ../gem5-gpu/configs/se_fusion.py -c -o 16

/parboil/histo는 파일을 입력으로 받음.
/parboil/lbm은 실행 중에 멈춤.

GPGPU-Sim PTX: removing ptxinfo using "rm -f _ptx_IJuieY _ptx2_yTau4q _ptx_IJuieYinfo"
^CExiting @ tick 71203109500 because user interrupt receive

/parboil/mm은 파일을 입력으로 받음 (세 개)
/parboil/mri-gridding은 실행 중에 멈춤.

panic: Tried to read unmapped address 0.
@ tick 211638000
[invoke:build/VI_hammer/arch/x86/faults.cc, line 160]
Memory Usage: 2429900 KBytes
Program aborted at tick 211638000
[1] 6046 abort (core dumped) build/VI_hammer/gem5.opt ../gem5-gpu/configs/se_fusion.py -c -o 16

/parboil/mri-q도 실행 중에 멈춤.

panic: local memory allocation is untested!
@ tick 69582000
[add_identifier:build/VI_hammer/gpgpu-sim/cuda-sim/ptx_parser.cc, line 433]
Memory Usage: 2424636 KBytes
Program aborted at tick 69582000
[1] 6108 abort (core dumped) build/VI_hammer/gem5.opt ../gem5-gpu/configs/se_fusion.py -c -o 16

/parboil/sad는 입력 파일을 두 개 요구.
/parboil/spmv는 입력 파일 한 개 필요.
/parboil/stencil은 다음과 같은 인자값 받음.

Usage: probe nx ny nz tx ty t
nx: the grid size x
ny: the grid size y
nz: the grid size z
tx: the block size x
ty: the block size y
t: the iteration timeExiting @ tick 93431000 because target called exit()

/parboil/tpacf는 알 수 없는 이유로 종료한다.

panic: Tried to execute unmapped address 0.
@ tick 148096000
[invoke:build/VI_hammer/arch/x86/faults.cc, line 160]
Memory Usage: 2428796 KBytes
Program aborted at tick 148096000
[1] 6352 abort (core dumped) build/VI_hammer/gem5.opt ../gem5-gpu/configs/se_fusion.py -c -o 16

/rodinia/bfs는 잘 실행되지만, reading file에서 에러가 발생했다고 나온다.

GPGPU-Sim PTX: removing ptxinfo using "rm -f _ptx_2FZjjw _ptx2_KTkGzW _ptx_2FZjjwinfo"
Reading File
Error Reading graph file
Exiting @ tick 96381500 because target called exit()

/rodinia/cell은 인자값을 달라는 메시지가 발생함.

GPGPU-Sim PTX: removing ptxinfo using "rm -f _ptx_C3IYnV _ptx2_jFAMU1 _ptx_C3IYnVinfo"
Usage: cell dim3 dim2 dim1 timesteps pyramid_height
Exiting @ tick 86284000 because target called exit()

/rodinia/gaussian은 메모리 읽기 오류로 프로그램 실행 중에 종료됨.

panic: Tried to read unmapped address 0xc0.
@ tick 87282000
[invoke:build/VI_hammer/arch/x86/faults.cc, line 160]
Memory Usage: 2424572 KBytes
Program aborted at tick 87282000
[1] 6530 abort (core dumped) build/VI_hammer/gem5.opt ../gem5-gpu/configs/se_fusion.py -c -o 16

/rodinia/heartwall은 인자를 달라는 메시지가 발생함.

ERROR: usage: heartwall <inputfile> <num of frames>
Exiting @ tick 111371500 because target called exit()

/rodinia/hotspot은 다음과 같이 사용해 달라는 메시지가 발생함.

Wrong Usage: grid_rows/cols pyramid_height total_iterations
Exiting @ tick 85299000 because target called exit()

/rodinia/kmeans는 다음과 같이 사용해 달라는 메시지가 발생함.

Usage: ./../benchmarks/rodinia/kmeans/gem5_fusion_kmeans [switches] -i filename
-i filename :file containing data to be clustered
-m max_nclusters :maximum number of clusters allowed [default=5]
-n min_nclusters :minimum number of clusters allowed [default=5]
-t threshold :threshold value [default=0.001]
-l nloops :iteration for each number of clusters [default=1]
-b :input file is in binary format
-r :calculate RMSE [default=off]
-o :output cluster center coordinates [default=off]
Exiting @ tick 93970000 because target called exit()

/rodinia/lavaMD는 알려지지 않은 파라메터라는 오류가 발생함.

ERROR: Unknown parameter
Exiting @ tick 113158500 because target called exit()

/rodinia/lud는 다음과 같이 사용하라는 메시지가 발생함.

Usage: ./../benchmarks/rodinia/lud/gem5_fusion_lud [-v] [-s matrix_size|-i input_file]
Exiting @ tick 123926500 because target called exit()

/rodinia/nn은 메모리 읽기 오류로 프로그램이 종료됨.

panic: Tried to read unmapped address 0.
@ tick 89630500
[invoke:build/VI_hammer/arch/x86/faults.cc, line 160]
Memory Usage: 2427752 KBytes
Program aborted at tick 89630500
[1] 6675 abort (core dumped) build/VI_hammer/gem5.opt ../gem5-gpu/configs/se_fusion.py -c -o 16

/rodinia/nw는 다음과 같이 사용하라는 메시지가 발생함

Usage: ./../benchmarks/rodinia/nw/gem5_fusion_needle <max_rows/max_cols> <penalty> 
 <dimension> - x and y dimensions
 <penalty> - penalty(positive integer)
Exiting @ tick 94286500 because target called exit()

/rodinia/particlefilter는 다음과 같이 사용하라는 메시지가 발생함

naive.out -x <dimX> -y <dimY> -z <Nfr> -np <Nparticles>
Exiting @ tick 87703000 because target called exit()

/rodinia/pathfinder는 다음과 같이 사용하라는 메시지가 발생함.

Usage: dynproc row_len col_len pyramid_height
Exiting @ tick 86331500 because target called exit()

/rodinia/srad는 다음과 같이 사용하라는 메시지가 발생함.

Usage: ./../benchmarks/rodinia/srad/gem5_fusion_srad <rows> <cols> <y1> <y2> <x1> <x2> <lamda> <no. of iter>
 <rows> - number of rows
 <cols> - number of cols
 <y1> - y1 value of the speckle
 <y2> - y2 value of the speckle
 <x1> - x1 value of the speckle
 <x2> - x2 value of the speckle
 <lamda> - lambda (0,1)
 <no. of iter> - number of iterations

/rodinia/streamcluster는 다음과 같이 사용하라는 메시지가 발생함.

usage: ./../benchmarks/rodinia/streamcluster/gem5_fusion_streamcluster k1 k2 d n chunksize clustersize infile outfile nproc
k1: Min. number of centers allowed
k2: Max. number of centers allowed
d: Dimension of each data point
n: Number of data points
chunksize: Number of data points to handle per step
clustersize: Maximum number of intermediate centers
infile: Input file (if n<=0)
outfile: Output file
nproc: Number of threads to use

4. 리눅스 커널 스터디 준비

Advertisements
Posted in 1) Memo

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

누적 방문자 수
  • 93,229 hits
%d bloggers like this: