Linux/Ubuntu2012. 6. 2. 23:15
이것저것 뒤져봐도 안되서 별짓을 다하다 우연히 발견하게 되었는데,
/var/log/Xorg.0/log가 핵심적인 힌트를 주게 될 줄이야..

다른 설정들을 해보아도(grub의 nomodeset 이라던가) 안되는데
에러메시지를 보다보니 지금 연결된 모니터는 CRT-0 인데,
모니터를 연결하지 않고 켠다면 연결될 모니터를 알 수 없기 때문에 xwindow의 시작이 멈추게 된다.
약간의 편법(?) 이지만 만약 모니터를 CRT-0 로 인식을 시키게 되면
구형 모니터이기에 해상도 정보라던가 이런걸 돌려받지 못할수도 있어서
modes에 설정된 값으로 해상도를 설정하고 확인하지 않고 부팅을 진행하게 해주는 것으로 추측된다.

---
modes는 해주지 않아도 부팅에 문제가 없다
test 플랫폼은 리플룩 ion-330
---

$ cat /etc/X11/xorg.conf
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 295.33  (buildd@zirconium)  Fri Mar 30 13:38:49 UTC 2012

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Budzetron ANALOG"
    HorizSync       30.0 - 80.0
    VertRefresh     50.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "ION"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "1280x1024_60 +0+0"
    Option         "ConnectedMonitor" "CRT-0"
    Option         "UseDisplayDevice" "CRT-0"
    SubSection     "Display"
        Depth       24
Modes       "1280x1024"
    EndSubSection
EndSection


Posted by 구차니
Programming/openCL & CUDA2012. 6. 2. 22:00
리플 룩 ion330 모델에 내장된 ion에 대한 devicequery이다.
2개의 MP가 존재해서 총 16개의 CUDA core가 존재한다.

~/NVIDIA_GPU_Computing_SDK/C/bin/linux/release$ ./deviceQuery
[deviceQuery] starting...

./deviceQuery Starting...

 CUDA Device Query (Runtime API) version (CUDART static linking)

Found 1 CUDA Capable device(s)

Device 0: "ION"
  CUDA Driver Version / Runtime Version          4.2 / 4.2
  CUDA Capability Major/Minor version number:    1.1
  Total amount of global memory:                 254 MBytes (266010624 bytes)
  ( 2) Multiprocessors x (  8) CUDA Cores/MP:    16 CUDA Cores
  GPU Clock rate:                                1100 MHz (1.10 GHz)
  Memory Clock rate:                             800 Mhz
  Memory Bus Width:                              64-bit
  Max Texture Dimension Size (x,y,z)             1D=(8192), 2D=(65536,32768), 3D=(2048,2048,2048)
  Max Layered Texture Size (dim) x layers        1D=(8192) x 512, 2D=(8192,8192) x 512
  Total amount of constant memory:               65536 bytes
  Total amount of shared memory per block:       16384 bytes
  Total number of registers available per block: 8192
  Warp size:                                     32
  Maximum number of threads per multiprocessor:  768
  Maximum number of threads per block:           512
  Maximum sizes of each dimension of a block:    512 x 512 x 64
  Maximum sizes of each dimension of a grid:     65535 x 65535 x 1
  Maximum memory pitch:                          2147483647 bytes
  Texture alignment:                             256 bytes
  Concurrent copy and execution:                 No with 0 copy engine(s)
  Run time limit on kernels:                     No
  Integrated GPU sharing Host Memory:            Yes
  Support host page-locked memory mapping:       Yes
  Concurrent kernel execution:                   No
  Alignment requirement for Surfaces:            Yes
  Device has ECC support enabled:                No
  Device is using TCC driver mode:               No
  Device supports Unified Addressing (UVA):      No
  Device PCI Bus ID / PCI location ID:           3 / 0
  Compute Mode:
     < Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 4.2, CUDA Runtime Version = 4.2, NumDevs = 1, Device = ION
[deviceQuery] test results...
PASSED

> exiting in 3 seconds:
3...2...1...done! 

그나저나.. 대역폭에서 내장형 그래픽이라 메인메모리를 공유하는데 왜 대역폭에서 이렇게 차이가 날까?
~/NVIDIA_GPU_Computing_SDK/C/bin/linux/release$ ./bandwidthTest
[bandwidthTest] starting...

./bandwidthTest Starting...

Running on...

 Device 0: ION
 Quick Mode

 Host to Device Bandwidth, 1 Device(s), Paged memory
   Transfer Size (Bytes)        Bandwidth(MB/s)
   33554432                     887.0

 Device to Host Bandwidth, 1 Device(s), Paged memory
   Transfer Size (Bytes)        Bandwidth(MB/s)
   33554432                     735.9

 Device to Device Bandwidth, 1 Device(s)
   Transfer Size (Bytes)        Bandwidth(MB/s)
   33554432                     5345.2

[bandwidthTest] test results...
PASSED

> exiting in 3 seconds: 3...2...1...done! 

8800GT 에 비하면 확실히 nbody 에서의 연산속도와 fps가 많이 떨어지는 느낌
(8800GT에서는 150fps에 50GFLOP/s 정도 나옴)

2010/11/02 - [Programming/openCL / CUDA] - CUDA 예제파일 실행결과 + SLI


+ 리눅스에서 nvidia 드라이버 버전 보는 방법
$ cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86 Kernel Module  295.40  Thu Apr  5 21:28:09 PDT 2012
GCC version:  gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)

[링크 : http://www.nvnews.net/vbulletin/showthread.php?t=127289]   


Posted by 구차니
Linux/Ubuntu2012. 6. 2. 21:55
so(shared object) 파일을 찾을수 없을때 발생하는 녀석으로 해결책은 두가지가 존재한다.

1. 사용자 별로 설정
$ vi ~/.bashrc
export LD_LIBRARY_PATH=[so 파일경로]
$ source ~/.bashrc  

2. 전체 시스템 설정
$ sudo vi /etc/ld.so.conf/user.conf
[so 파일경로]
$ sudo ldconfig   


'Linux > Ubuntu' 카테고리의 다른 글

rutorrent on ubuntu 12.04 LTS  (0) 2012.06.07
ubuntu 12.10 에서 모니터 없이 부팅시키기  (0) 2012.06.02
cuda 4.2 linux  (0) 2012.06.02
grub loader 날리기  (0) 2012.04.29
ubuntu 12.04 LTS released  (0) 2012.04.28
Posted by 구차니
프로그램 사용/wiki2012. 6. 2. 20:35
1. 서버내 경로 옮기기
$wgScriptPath       = "/mediawiki";
$wgScriptPath       = "";  

위키가 설치된 경로를 의미하는데
만약에 /var/www/mediawiki에 설치 되었다면 /mediawiki 로 입력하게 된다. (우분투 기준, /var/www 가 htdocs일 경우) 
그리고 웹서버에서 mediawiki만 서비스하고 싶다면
/var/www 에 mediawiki 하위 내용을 다 옮긴후 "" 로 빈 경로를 넣어주면 된다.


2. 로고 바꾸기
$wgLogo             = "$wgStylePath/common/images/wiki.png"; 
$wgLogo             = "$wgStylePath/common/images/mediawiki.png"; 

기본 설치시 $wgLogo를 변경해서 아이콘을 변경하라는 로고가 박히는데 그게 wiki.png 파일이다. 
mediawiki.png로 바꾸면 이쁜 꽃모양의 로고로 변경되고 mediawiki상의 경로는
mediawiki/skin/common/images/wiki.png 에 안내 로고가 위치한다. 
Posted by 구차니
Linux/Ubuntu2012. 6. 2. 19:06
cuda를 리눅스에 깔려니 참.. 어렵구나..
아무튼 driver는 ubuntu 12.04 LTS에서 lightgdm 서비스를 종료하고 설치해야 하는데
드라이버 설정 문제로 오작동 중이고.. -_-
toolkit의 경우는 /usr/local에 설치해야 해서 sudo를 통해 설치
sdk는 사용자 디렉토리에 설치되므로 부담없이 사용자 권한으로 설치하면 된다.

$ sudo ./cudatoolkit_4.2.9_linux_32_ubuntu11.04.run

Enter install path (default /usr/local/cuda, '/cuda' will be appended):
========================================

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

* Please read the release notes in /usr/local/cuda/doc/

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

$ ./gpucomputingsdk_4.2.9_linux.run
Enter install path (default ~/NVIDIA_GPU_Computing_SDK):

Could not locate CUDA.  Enter the full path to CUDA.
If you do not know the path, accept the default and then 
modify the CUDA_INSTALL_PATH variable in
/home/minimonk/NVIDIA_GPU_Computing_SDK/C/common/common.mk.

Enter CUDA install path (default /usr/local/cuda):  

드라이버는 빡쳐서 그냥 우분투에서 관리하는 독점드라이버 사용 -_-
295.40 버전이 자동으로 설치되는것으로 보인다.(굳이 X윈도우 시작도 안되게 devdriver 깔필요 없을지도..)
$ sudo ./devdriver_4.2_linux_32_295.41.run 








Posted by 구차니
Programming/openCL & CUDA2012. 6. 2. 17:00
아놔... 또 신버전이야 ㅠ.ㅠ

 

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

ubuntu 에서 vectorAdd 직접 컴파일 하기  (0) 2012.06.03
CUDA devicequery - ION 330  (0) 2012.06.02
nvidia ion cuda core와 h.264 library  (0) 2012.05.22
CUDA API 메모리 종류  (0) 2012.05.18
Interoperability (상호운용성)  (0) 2012.05.04
Posted by 구차니
택배 사원이 "구미"에서 접수는 20:45분에 했는데
물품이 상대영업점으로 출발한건 20:28분
접수도 안했는데 벌써 구미에서 대전을 보내다니!!!


2012/05/02 - [개소리 왈왈/직딩의 비애] - 시간을 달리는 택배

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

아마도 D-51  (0) 2012.07.11
퇴근길  (0) 2012.06.29
멘붕  (0) 2012.05.30
야근야근 열매  (6) 2012.05.29
프로그램에서 제일 중요한 것  (0) 2012.05.24
Posted by 구차니
개소리 왈왈2012. 6. 1. 11:33
생각해보니 15일날 공지하고 2주만에 서비스 종료네
먼가 억울한데? -_-


2012/05/15 - [개소리 왈왈] - 잘가 메모짱

Posted by 구차니
개소리 왈왈/컴퓨터2012. 5. 31. 16:15
리플룩 ion-330 모델 질렀는데..
       1. 잘 도착하려나? (사기는 아니겠지 ㅠ.ㅠ)
       2. 집으로 보내놨는데 혼나는거 아냐? (또 컴퓨터?!?!?! 막 이러실듯 엄마의 등짝 스매싱... 후덜덜)
       3. 하나 더 지를걸 그랬나..
       4. xeon 서버 어떻게 처분하지?
       5. 데탑은 어떻게 처분하지?
이래저래 고민만 쌓여간다.


아무튼 새로산 녀석은 atom 넷탑이니
dnsever ddns 서비스 이용해서 dev.minimonk.net에 연결하고
ssh / web / 개발 / cuda 용으로 설정해서 써야지 ㅋㅋㅋ 

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

ripple look ion 330 모델  (0) 2012.06.03
아직은 너무나 먼 리눅스  (0) 2012.06.03
욕심 / 목표 / 폭파  (0) 2012.05.28
아 지르고 싶다 ㅠ.ㅠ  (0) 2012.05.26
으어어 앙대 ㅠ.ㅠ 아람전자 망한건가?  (0) 2012.05.11
Posted by 구차니
집에가자~




회사일에 올인하다보니 내가 없어지는걸 느낀다.
내가 없어지니... 무슨 낙이 있을까....

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

퇴근길  (0) 2012.06.29
시간을 달리는 택배 2  (0) 2012.06.01
야근야근 열매  (6) 2012.05.29
프로그램에서 제일 중요한 것  (0) 2012.05.24
D-103  (0) 2012.05.23
Posted by 구차니