Programming/openCL & CUDA2014. 1. 6. 15:20
Telsa K20 GPU 원격 클로스터 로그인 데모 가입인거 같은데
들어 본적 없는 어플리케이션들 뿐이라, 돌려볼 방법도 몰라서 무의미해져 버린 좋은기회 ㅠㅠ


[링크 : http://www.nvidia.co.kr/object/gpu-test-drive-kr.html]

'Programming > openCL & CUDA' 카테고리의 다른 글

nvidia ion + ubuntu 12.04 LTS + cuda5.5  (0) 2014.01.08
cuda on windows 7  (0) 2014.01.06
cuda on ubuntu 12.04 LTS  (0) 2014.01.06
cuda 5.5  (0) 2014.01.06
CUDA Capability별 기능차이  (0) 2013.02.17
Posted by 구차니
Programming/openCL & CUDA2014. 1. 6. 10:52
deb 패키지로 지원을 해서 한번 깔아 보는데 엌ㅋㅋㅋ


run으로 설치시에는 /usr/local/cuda-5.5 에
Install the CUDA 5.5 Toolkit? ((y)es/(n)o/(q)uit): n
Install the CUDA 5.5 Samples? ((y)es/(n)o/(q)uit): y
Enter CUDA Samples Location [ default is /home/minimonk/NVIDIA_CUDA-5.5_Samples ]:
Enter Toolkit Location [ default is /usr/local/cuda-5.5 ]: 

deb 패키지 설치시에는 /usr/local/cuda에 설치된다. (32bit 기준)
[링크 : http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-linux/index.html]

일단.. 설치된건 cuda repo 이니.. 추가로  cuda-dev와 cuda-doc을 설치 해봐야징..
$ sudo apt-cache search cuda
boinc-nvidia-cuda - metapackage for CUDA-savvy BOINC client and manager
libthrust-dev - Thrust - C++ template library for CUDA
pyrit - GPGPU-driven WPA/WPA2-PSK key cracker
python-pytools - big bag of things supplementing Python standard library
suricata - Next Generation Intrusion Detection and Prevention Tool
libcublas4 - NVIDIA CUDA BLAS runtime library
libcudart4 - NVIDIA CUDA runtime library
libcufft4 - NVIDIA CUDA FFT runtime library
libcurand4 - NVIDIA CUDA Random Numbers Generation runtime library
libcusparse4 - NVIDIA CUDA Sparse Matrix runtime library
libnpp4 - NVIDIA Performance Primitives runtime library
nvidia-compute-profiler - NVIDIA Compute Visual Profiler
nvidia-cuda-dev - NVIDIA CUDA development files
nvidia-cuda-doc - NVIDIA CUDA and OpenCL documentation
nvidia-cuda-gdb - NVIDIA CUDA GDB
nvidia-cuda-toolkit - NVIDIA CUDA toolkit
nvidia-304 - NVIDIA binary Xorg driver, kernel module and VDPAU library
nvidia-304-updates - NVIDIA binary Xorg driver, kernel module and VDPAU library
nvidia-319 - NVIDIA binary Xorg driver, kernel module and VDPAU library
nvidia-319-updates - NVIDIA binary Xorg driver, kernel module and VDPAU library
python-pycuda - Python module to access Nvidia‘s CUDA parallel computation API
python-pycuda-doc - module to access Nvidia‘s CUDA parallel computation API (documentation)
python-pycuda-headers - headers for Python module to access Nvidia‘s CUDA parallel computation API
cuda-repo-ubuntu1204 - CUDA repo configuration files. 

$ sudo apt-get install nvidia-cuda-dev nvidia-cuda-doc
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다
상태 정보를 읽는 중입니다... 완료
다음 패키지를 더 설치할 것입니다:
  cpp-4.4 g++-4.4 gcc-4.4 gcc-4.4-base libcublas4 libcudart4 libcufft4 libcurand4 libcusparse4
  libnpp4 libqtassistantclient4 libstdc++6-4.4-dev libthrust-dev libvdpau-dev
  nvidia-compute-profiler nvidia-cuda-gdb nvidia-cuda-toolkit nvidia-opencl-dev opencl-headers
제안하는 패키지:
  gcc-4.4-locales g++-4.4-multilib gcc-4.4-doc libstdc++6-4.4-dbg gcc-4.4-multilib
  libmudflap0-4.4-dev libgcc1-dbg libgomp1-dbg libmudflap0-dbg libcloog-ppl0 libppl-c2 libppl7
  libstdc++6-4.4-doc libvdpau-doc
다음 새 패키지를 설치할 것입니다:
  cpp-4.4 g++-4.4 gcc-4.4 gcc-4.4-base libcublas4 libcudart4 libcufft4 libcurand4 libcusparse4
  libnpp4 libqtassistantclient4 libstdc++6-4.4-dev libthrust-dev libvdpau-dev
  nvidia-compute-profiler nvidia-cuda-dev nvidia-cuda-doc nvidia-cuda-gdb nvidia-cuda-toolkit
  nvidia-opencl-dev opencl-headers
0개 업그레이드, 21개 새로 설치, 0개 제거 및 4개 업그레이드 안 함.
142 M바이트 아카이브를 받아야 합니다.
이 작업 후 467 M바이트의 디스크 공간을 더 사용하게 됩니다.
계속 하시겠습니까 [Y/n]? 

샘플 파일을 위해서는 run 파일로 설치해야 할듯..
그리고 샘플은 ${HOME}에 저장된다.
$ sudo ./cuda_5.5.22_linux_32.run
NVIDIA CUDA General Terms
-------------------------

The Software may collect non-personally identifiable
information for the purposes of customizing information
delivered to you and improving future versions of the
Software. Such information, including IP address and system
configuration, will only be collected on an anonymous basis
and cannot be linked to any personally identifiable
information. Personally identifiable information such as your
username or hostname is not collected.

-------------------------------------------------------------
Do you accept the previously read EULA? (accept/decline/quit): accept
Install NVIDIA Accelerated Graphics Driver for Linux-x86 319.37? ((y)es/(n)o/(q)uit): y
Install the CUDA 5.5 Toolkit? ((y)es/(n)o/(q)uit): y
Enter Toolkit Location [ default is /usr/local/cuda-5.5 ]:
Install the CUDA 5.5 Samples? ((y)es/(n)o/(q)uit): y
Enter CUDA Samples Location [ default is /home/minimonk/NVIDIA_CUDA-5.5_Samples ]:
Installing the NVIDIA display driver...
Installing the CUDA Toolkit in /usr/local/cuda-5.5 ...
Installing the CUDA Samples in /home/minimonk/NVIDIA_CUDA-5.5_Samples ...
Copying samples to /home/minimonk/NVIDIA_CUDA-5.5_Samples/NVIDIA_CUDA-5.5_Samples now...
Finished copying samples.

===========
= Summary =
===========

Driver:   Installed
Toolkit:  Installed in /usr/local/cuda-5.5
Samples:  Installed in /home/minimonk/NVIDIA_CUDA-5.5_Samples

* Please make sure your PATH includes /usr/local/cuda-5.5/bin

* Please make sure your LD_LIBRARY_PATH
*   for 32-bit Linux distributions includes /usr/local/cuda-5.5/lib
*   for 64-bit Linux distributions includes /usr/local/cuda-5.5/lib64:/lib
* OR
*   for 32-bit Linux distributions add /usr/local/cuda-5.5/lib
*   for 64-bit Linux distributions add /usr/local/cuda-5.5/lib64 and /lib
* to /etc/ld.so.conf and run ldconfig as root

* To uninstall CUDA, remove the CUDA files in /usr/local/cuda-5.5
* Installation Complete

Please see CUDA_Getting_Started_Linux.pdf in /usr/local/cuda-5.5/doc/pdf for detailed information on setting up CUDA.

Logfile is /tmp/cuda_install_5918.log

왜!!! 우분투에서 샘플 코드 까진 관리를 안해주는거야 ㅠㅠ

'Programming > openCL & CUDA' 카테고리의 다른 글

cuda on windows 7  (0) 2014.01.06
cuda / cpu 테스트 드라이브  (0) 2014.01.06
cuda 5.5  (0) 2014.01.06
CUDA Capability별 기능차이  (0) 2013.02.17
Nvidia GTX 시리즈별 코드네임  (0) 2013.02.17
Posted by 구차니
Programming/openCL & CUDA2014. 1. 6. 10:41
ㄷㄷㄷ 벌써 버전이 이렇게!!
일단.. 리눅스는 12.04 LTS 32bit / 2GB 짜리라.. 메모리라도 늘려줘야 하나? ㅠㅠ

 

'Programming > openCL & CUDA' 카테고리의 다른 글

cuda / cpu 테스트 드라이브  (0) 2014.01.06
cuda on ubuntu 12.04 LTS  (0) 2014.01.06
CUDA Capability별 기능차이  (0) 2013.02.17
Nvidia GTX 시리즈별 코드네임  (0) 2013.02.17
cuda deviceQuery on GTX650  (0) 2013.02.17
Posted by 구차니
길가다 무언가 하나 주길래
교회인가? 그냥 넘기고 자세히 보지 않다가
집에 와서 보게 되었는데 헐 ㅋㅋㅋㅋ




정말 조그맣게 "여호와의 증인" ㅋㅋㅋㅋ
게다가 일본에도 지부가 있고
머야 왜 printed in Japan이야? 


'개소리 왈왈 > 사진과 수다' 카테고리의 다른 글

DDP - 동대문 디자인 플라자  (0) 2014.03.25
뭘 보냐 닝겐  (2) 2014.03.19
먼가 찜찜했던 유기...견?  (0) 2013.12.31
광화문-서울시청  (0) 2013.12.28
여의도 불꽃축제 2013  (0) 2013.10.05
Posted by 구차니
게임2014. 1. 5. 12:05
플레이 타임은 12시간인데
한달 정도 걸린 느낌 ..
퍼즐이 은근 업그레이드 되어서 깨다가 막히면 짜증나는 바람에
엔딩까지 오랜 시간이 걸렸다.




'게임' 카테고리의 다른 글

bio shock 시리즈 한글 패치  (0) 2014.03.08
피망 블레스  (0) 2014.02.12
Trine 끝  (0) 2013.12.16
super hexagon 엌ㅋㅋ  (0) 2013.12.07
JASF 미워할테다 ㅠㅠ  (2) 2013.12.04
Posted by 구차니
LM-324가 몇배 증폭되는진 모르겠지만... 90배 정도 까진 단일 회로로 가능한듯..
회로는 앞서의 내용을 확인하면 되고....
2014/01/02 - [embeded/ATmega/ATtiny (AVR)] - LM324와 ST-1K 사용조사

일단.. 10K / 220옴 이용해서 증폭한 경우
과거의 2.5mV / 0.02mV에 비해서 꽤 크게 증폭이 되었다.
(차단이 제대로 안되었거나 흔들렸을때 잘못 찍은듯..)


그리고 220옴 병렬저항으로 10k/110옴으로 증폭한 결과


전체 회로(?)는 아래와 같다.




Posted by 구차니
개소리 왈왈/영화2014. 1. 3. 21:35
롯데 시네마 천호점에서 혼자서 조조로 본 영화.
고 노무현 대통령의 변호사 시절 이야기라고 하지만
영화 초반에 사실을 기반으로 한 허구의 이야기라고 하는 바람에 열심히 까이는 영화이다.

아무튼 시간에 맞춰가지 못해서
그 문구를 못보고 조금 늦게 들어갔지만 영화 감상에는 크게 지장이 없었다.


변호인
감독 양우석 (2013 / 한국)
출연 송강호
상세보기



---- 스포일러 및 평가
스토리는 알려질만큼 알려졌을테니
일단.. 송변호사가 부산으로 내려가서는 성공하는 이야기(?)인데
변호사도 등기업무를 할 수 있게 법이 바뀌면서 부동산중개업으로 뛰어들고 돈을 거머쥐어
사시 공부 하던 시절 노가다 뛰면서 짓던 아파트로 들어가는 감동적인 내용과
변호사하며 돈을 벌어 거들먹 거리다 주변인의 고초로 인해 어깨에 힘을 빼고 인권변호사로 거듭나게 되는 이야기이다. 

개인적으로는 송강호의 감정적인 연기가 조금은 오버 스럽다는 느낌이 들었고
정말 시간 가는지 모르게 본 것 봐서는 엄청나게 몰입했던 것 같다.
하지만 감정의 최고조를 찍는 순간의 엔딩 크레딧은 아쉬움이 진하게 묻어났다.

굳이 점수를 매긴다면.. 7/10점? 

'개소리 왈왈 > 영화' 카테고리의 다른 글

역린(2014)  (0) 2014.05.11
수상한 그녀(2014)  (0) 2014.02.09
토르 : 다크 월드 (2013)  (0) 2013.11.25
숨바꼭질 (2013)  (0) 2013.09.08
박수건달 (2013)  (4) 2013.01.20
Posted by 구차니
음.. 아직 사용을 한건 아니고 자료 조사중..
LM324는 4 채널 앰프(?) 를 내장한 IC인데
증폭을 하려면 먼가.. 복잡하다?




왜 저런 구성인진 걍 일단 넘어 가자 ㅠㅠ
+에 증폭을 원하는 신호를 넣고
-에 증폭률을 제어하는 거 같은데
Vo = 2.5V * (1 + R1/R2)
식에 의해서 증폭률이 결정된다.
출력은 전압으로 나오니까..

5mV를 5V로 뻥튀기 하려면.. 1000배 증폭.. ㄷㄷㄷ
4 채널이니 10배씩 3번 증폭 해야 하나?

2013/07/07 - [embeded/ATmega/ATtiny (AVR)] - ST-23G / EL-23G 가지고 놀기

아무튼 아래는 ST-1K 기본 회로 구성
Vout쪽에 풀업인지 풀다운인지 아무튼 먼가를 걸어놓고
단순 스위치 처럼 작동하는 넘인데 총 저항 3개랑 배선만 좀 죽어라 하면 가능할거 같긴 하지만...


걍.. 돈좀 써서 증폭기 달린걸로 써볼까 -_-


[링크: http://www.eleparts.co.kr/.../KSM-603LM5ND SPECIFICATION (091221) Ver 0.33.pdf]  KSM-603LM5ND
Posted by 구차니
embeded2014. 1. 2. 11:16
기즈모스피어는 x86 기반 임베디드(?) 키트
라즈베리 파이는 arm 기반 임베디드 키트이다.

둘다 pc급으로 구성이 가능하지만.
라즈베리가 보드만 3만원대라면.. 기즈모 스피어는 22만원대.. 끄아아

[링크 : http://www.gizmosphere.org/]
  [링크 : http://www.bloter.net/archives/161480]

[링크 : http://www.rasplay.org/]

'embeded' 카테고리의 다른 글

ltib / rc.conf  (0) 2014.11.24
Z80 M6800  (0) 2014.01.27
USB2LPT for JTAG  (0) 2013.06.21
Hi-Z / Tristate / 플로트(float)  (0) 2013.01.02
KEIL 컴파일러 종류  (0) 2012.04.21
Posted by 구차니
Modes of Operation

Normal Mode
The simplest mode of operation is the normal mode (WGM01:0 = 0). In this mode the counting direction is always up (incrementing), and no counter clear is performed. The counter simply overruns when it passes its maximum 8-bit value (TOP = 0xFF) and then restarts from the bottom (0x00). In normal operation the Timer/Counter overflow flag (TOV0) will be set in the same timer clock cycle as the TCNT0 becomes zero. The TOV0 flag in this case behaves like a ninth bit, except that it is only set, not cleared. However, combined with the timer overflow interrupt that automatically clears the TOV0 flag, the timer resolution can be increased by software. There are no special cases to consider in the normal mode, a new counter value can be written anytime.
The output compare unit can be used to generate interrupts at some given time. Using the output compare to generate waveforms in normal mode is not recommended, since this will occupy too much of the CPU time.
가장 단순한 작동은 노말모드 입니다 (WGM01:0 =0). 이 모드에서는 카운팅 방향은 항상 위쪽이며(증가), 카운터 클리어가 수행되지 않습니다. 카운터는 8bit 최대값을 넘어설때 (0xFF) 단순히 초과해 버리며 바닥(0x00) 부터 재시작 합니다. 


Clear Timer on Compare Match (CTC) Mode
In Clear Timer on Compare or CTC mode (WGM01:0 = 2), the OCR0 Register is used to manipulate the counter resolution. In CTC mode the counter is cleared to zero when the counter value(TCNT0) matches the OCR0. The OCR0 defines the top value for the counter, hence also its resolution. This mode allows greater control of the compare match output frequency. It also simplifies the operation of counting external events. The timing diagram for the CTC mode is shown in Figure 38. The counter value (TCNT0) increases until a compare match occurs between TCNT0 and OCR0, and then counter (TCNT0) is cleared. 
CTC 모드에서 OCR0 레지스터는 카운터 해상도를 조작하는데 사용됩니다. CTC 모드에서 카운터는 카운터 값(TCNT0)가 OCR0와 일치할때 0으로 초기화 됩니다. OCR0는 상한값과 해상도를 정의합니다. 이 모드는 compare match 출력 주파수의 더 나은 제어를 제공합니다. 그것은 또한 외부 이벤트의 카운팅 작업을 단순화 시킵니다. CTC 모드를 위한 타이밍 다이너그램은 Figure 38에 있습니다. 카운터 값(TCNT0)는 TCNT0와 OCR0 값이 일치하는 순간때까지 증가하며 카운터는(TCNT0) 초기화 됩니다.


Fast PWM Mode
The fast Pulse Width Modulation or fast PWM mode (WGM01:0 = 3) provides a high frequency PWM waveform generation option. The fast PWM differs from the other PWM option by its single-slope operation. The counter counts from BOTTOM to MAX then restarts from BOTTOM. In non-inverting Compare Output mode, the output compare (OC0) is cleared on the compare match between TCNT0 and OCR0, and set at BOTTOM. In inverting Compare Output mode, the output is set on compare match and cleared at BOTTOM. Due to the single-slope operation, the operating frequency of the fast PWM mode can be twice as high as the phase correct PWM mode that uses dual-slope operation. This high frequency makes the fast PWM mode well suited for power regulation, rectification, and DAC applications. High frequency allows physically small sized external components (coils, capacitors), and therefore reduces total system cost. In fast PWM mode, the counter is incremented until the counter value matches the MAX value. The counter is then cleared at the following timer clock cycle. The timing diagram for the fast PWM mode is shown in Figure 39. The TCNT0 value is in the timing diagram shown as a histogram for illustrating the single-slope operation. The diagram includes non-inverted and inverted PWM outputs. The small horizontal line marks on the TCNT0 slopes represent compare matches between OCR0 and TCNT0.
빠른 PWM 모드는 고주파 PWM 파형을 생성하는 옵션을 제공합니다. 빠른 PWM은 다른 PWM 옵션들에 비해 single-slope 작동으로 인해 차이점이 존재합니다. 카운터는 바닥에서 최대값으로 세고 바닥에서 다시 시작합니다(0 -> 0xFF / 증가).
non-inverting 비교 출력 모드에서는 출력비교(OC0)는 TCNT0와 OCR0가 일치할때 초기화 되고, 바닥(0x00)에서 설정됩니다.
inverting 비교 출력 모드에서는 일치할때 설정되고 바닥에서 초기화 됩니다. single-slope 작동으로 인해 빠른 PWM 모드의 작동 주파수는 dual-slope 작동을 사용하는 phase correct PWM의 2배 이상을 낼 수 있습니다. 이러한 높은 주파수로 인해 fast PWM 모드는 전력제어, 정류 그리고 DAC 어플리케이션에 매우 적절합니다. 고주파는 물리적으로 작은 크기의 외부 부품(코일, 캐패시터)를 사용할수 있도록 해주고, 전체 시스템의 비용을 낮출수 있습니다. 빠른 PWM 모드에서 카운터는 카운터 값이 최대값과 일치할때 까지 증가합니다. 카운터는 따라오는 타이머 클럭 사이클에 초기화 됩니다. 



Phase Correct PWM Mode
The phase correct PWM mode (WGM01:0 = 1) provides a high resolution phase correct PWM waveform generation option. The phase correct PWM mode is based on a dual-slope operation. The counter counts repeatedly from BOTTOM to MAX and then from MAX to BOTTOM. In non-inverting Compare Output mode, the output compare (OC0) is cleared on the compare match between TCNT0 and OCR0 while counting up, and set on the compare match while downcounting. In inverting Output Compare mode, the operation is inverted. The dual-slope operation has lower maximum operation frequency than single slope operation. However, due to the symmetric feature of the dual-slope PWM modes, these modes are preferred for motor control applications. 
phase correct PWM 모드는 고해상도의 
phase correct PWM 파형을 생성하는 옵션을 제공합니다. phase correct PWM 는 dual-slope 작동에 기반합니다. 카운터는 바닥과 최대값으로 그리고 최대에서 바닥으로 반복적으로 세어지게 됩니다. non-inverting비교 출력 모드에서는 출력 바교(OC0)는 숫자가 세어 올라가는(증가) 중 TCNT0와 OCR0이 일치하는 순간에 초기화 되고, 아래로 세어지는 도중(감소) 비교가 일치할 경우 설정됩니다. inverting  출력 비교 모드에서는 작동이 반대로 됩니다. dual-slope 작동은 single slope 작동보다 낮은 작동 주파수를 가집니다. 하지만 dual-slope PWM 모드의 대칭 특성으로 인해 모터 제어에 적합합니다.
Posted by 구차니