'Activity'에 해당되는 글 115건

  1. 2012/05/05 Visual Studio 2010에 CUDA 환경 구축하기
  2. 2012/05/05 Fedora 15, CUDA Toolkit 4.0 Install Guide
  3. 2012/04/20 OpenSplice DDS와 Apache Camel 설치
  4. 2012/04/20 OpenSplice DDS와 Apache Camel을 위한 환경구축
  5. 2012/04/20 윈도우 7 캡쳐도구 사용

Visual Studio 2010에 CUDA 환경 구축하기

Activity/4. General-Purpose Computation on GPU 2012/05/05 14:09

지난 포스트와 달리 윈도우 운영체제에서 CUDA 환경을 구축하는 내용입니다.

역시 아래의 순서대로 환경을 구축하면 되는데요,

제가 정리해두었으니 참고하세요.

따로 포스팅할 내용은 없네요 :)
















저작자 표시
Trackback 0 : Comment 0

Trackback Address :: http://hyungjunyim.tistory.com/trackback/452 관련글 쓰기

Write a comment


Fedora 15, CUDA Toolkit 4.0 Install Guide

Activity/4. General-Purpose Computation on GPU 2012/05/05 14:05

일전에 정리했던 Fedora 15에 CUDA Toolkit 4.0 환경 구축하기입니다.

먼저 Fedora 15 운영체제를 설치해야 합니다.

1. Fedora 15 설치 옵션에서 "Install F15 with the “Install with basic video driver"를 선택하여 설치합니다.

2. Fedora 15를 위와 같이 설치한 후 최신 버전의 nVidia video driver를 다운로드 받아 설치합니다.

3. 설치 후 재부팅을 하면 GNOME3이 운영되면 제대로 설치가 된 것으로 볼 수 있습니다.

4. CUDA Toolkit을 http://developer.nvidia.com/cuda-downloads에서 다운로드 받아 설치합니다.

최근에 다운로드 페이지를 가니 아래와 같이 그래픽적으로 표현해서 쉽게 원하는 다운로드를 할 수 있게 도와주네요 :)



아래의 설치 후 설정에 다른 블로그 포스팅이었는데 지금 가보니 비공개로 바뀌어 있습니다 ㅠ

설치 후 과정은 GNOME3에서 그래픽 설정이었습니다.


CUDA Toolkit을 설치하기 위해서 중요한 내용은 그래픽 모드에서 설치하지 말고 콘솔모드에서 설치해야 제대로 설치가 됩니다.

아래의 1번 PC는 제가 2대의 PC에 Fedora 15와 CUDA Toolkit을 설치하였는데 1대에서 Error가 나서 해결한 방법입니다.

그 다음의 네트워크 연결과 Chrome은 알아서 하시면 되고요 :)

그 이외는 아래에 제가 차례대로 정리하였으니 따라하시면 됩니다.

저도 시행착오가 많아서 하다가 정리하기로 결심했었는데 블로그에는 최근에야 올리게 되네요.










저작자 표시
Trackback 0 : Comment 0

Trackback Address :: http://hyungjunyim.tistory.com/trackback/450 관련글 쓰기

Write a comment


OpenSplice DDS와 Apache Camel 설치

Activity/1. Internet of Things 2012/04/20 17:08

OpenSplice DDS와 Apache Camel 설치입니다.

다운로드 받은 "OpenSpliceDDSConnector_ApacheCAMEL_0.2a"을 보면 환경구축이 있고,

다운로드 사이트: http://dev.opensplice.org/cgi-bin/twiki/view/Community/Downloads

2012/04/20 - [Activity/Development Tips] - OpenSplice DDS와 Apache Camel을 위한 환경구축 참고


저도 설치하면서 작성하는 중이라 순서가 뒤죽박죽이고, 다시 처음으로 돌아와서 설치하고 있습니다.

하지만 글을 성공한대로 제대로된 순서이니 참고하세요 :)


윈도우 환경에서 설치하는게 어렵네요. 아래의 포스팅은 제가 확인하는대로 따라서 작성한 것이고, 아무래도 리눅스 환경에서 설치해봐야 제대로 확인이 가능하겠네요,

죄송하지만 100% 완벽하게 작성은 하지 못했고요, 필요하신 부분들만 확인하시고 혹시 질문이 있으면 댓글이나 이메일로 연락주세요, 아는 한 답변해 드리겠습니다.


1. OpenSplice DDS 설치

환경 구축을 한 후에 아래의 문장을 별로 신경쓰지 않고 넘어갔는데 ㅠ 당연히 OpenSplice DDS를 설치했어야 하는데 말이죠, 자 이제 OpenSplice DDS 설치 들어갑니다.

Set up the OpenSplice environment by running the release.com script that resides within the OpenSplice installation.


OpenSplice DDS Downloads: http://www.prismtech.com/opensplice/opensplice-dds-community/software-downloads

에서 Community Edition (Open Source)를 다운받으시기 바랍니다.

저는 윈도우에서 설치를 진행하므로 

"Windows Installation of OpenSplice DDS Community Edition"를 확인하겠습니다.


Installation of OpenSplice DDS and Tools

참고: http://www.prismtech.com/opensplice/opensplice-dds-community/software-downloads/installing

설치 가이드를 보시려면 아래의 "설치 자세히 보기"를 눌러주세요.

설치 자세히 보기


저는 첨부한 installation guide에서 TAO 관련된 부분은 제외하고 Java와 OpenSplice DDS만 실행하기 위해 다음 부분만 수행했습니다.

C:\ospl>set JAVA_HOME="c:\Program Files\Java\jdk1.6.0_14"

// 이 부분은 윈도우의 고급환경설정에 가시면 JAVA_HOME을 지정할 수 있는 부분입니다.


C:\ospl>set PATH=%JAVA_HOME%\bin;%PATH%

// 이 부분 역시 JAAVA_HOME과 ospl.exe를 실행하기 위해 윈도우의 고급환경설정에 PATH로 등록하는 부분입니다.


C:\ospl>HDE\x86.win32\release.bat


"<<< OpenSplice HDE Release V4.1.1 For x86.win32, Date 2009-06-04 >>>"


위와 같이 저도 생성되었습니다.


제대로 OpenSplice DDS Community Edition이 설치되었는지 확인하려면 다음과 같이 하시면 됩니다.

ospl.exe start를 한 후 보면 Info log와 Error log가 생긴 것을 볼 수 있는데 이 파일은 실행시킨 경로에서 확인할 수 있습니다.

예를 들어, 저는 "C:\Users\hyungjun.yim\"에서 실행을 시켰기 때문에 여기에 로그가 생성됩니다.


자, 그럼 어떤 로그가 생겼는지 볼까요?


ospl-info.log


로그를 보니, DDS와 관련된 Entity와 Service들이 start되고, stop을 했던 부분들이 나오게 됩니다.

여기서 DDS를 자세히 살펴보기보다는 설치에 대한 내용이므로 설명은 하지 않겠습니다.

사실 저도 아직 분석은 못했고, 설치를 완료하고 나서 분석한 내용을 따로 포스팅하겠습니다.


2. mvn install

컴포넌트 빌드를 위한 내용이 있습니다.

Before the camel-dds component can be built it is first necessary to build the opensplice-idl-plugin for Apache Maven. This component allows Maven to access the OpenSplice idl pre-processor (idlpp) and compile idl into the required Java files for compilation.

Change directory to maven-dds/plugins/opensplice-idl-plugin, found within the camelopensplice directory and run:-


위의 내용을 정리하면 

camel-dds 컴포넌트를 빌드하기 전에 idl을 자바 파일로 변환하기 위한 OpenSplice의 idl 선행처리기와 컴파일러를 사용하려고 opensplice-idl-plugin을 먼저 apache maven에 빌드시켜야 한다.

maven-dds/plugins/opensplice-idl-plugin 폴더로 이동하여 아래의 과정을 실행한다.


위에서 설명한 것과 같이 시작→실행→"cmd"를 실행하여 "maven-dds/plugins/opensplice-idl-plugin"의 폴더로 이동하여 mvn install을 실행하면 아래 그림과 같이 죽~설치를 합니다.


설치하는 내용

Maven will download and install jars within its own repository. The default location for the repository is within a .m2 directory within the user's home. The opensplice-idl-plugin will build successfully and will also be installed into the Maven repository.


위의 내용은 user의 기본 홈 폴더에 ".m2"가 생기면서 maven repository가 생기는 군요


설치가 되고 난 결과는 캡쳐를 못했네요 ㅠ 하지만, 아래 그림과 같이 "\OpenSpliceDDSConnector_ApacheCAMEL_0.2a\camelopensplice\maven-dds\plugins\opensplice-idl-plugin\target\surefire-reports"에 가시면 txt 파일이 있는데 설치를 한 후 idl compiler 테스트한 결과를 볼 수 있습니다.


-------------------------------------------------------------------------------

Test set: org.opensplice.dds.idlcompiler.IDLMojoTest

-------------------------------------------------------------------------------

Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.391 sec <<< FAILURE!

testIDLCompilation(org.opensplice.dds.idlcompiler.IDLMojoTest)  Time elapsed: 1.105 sec  <<< ERROR!

org.apache.maven.plugin.MojoExecutionException: OSPL_HOME not set

at org.opensplice.dds.idlcompiler.IDLMojo.getCompiler(IDLMojo.java:180)

at org.opensplice.dds.idlcompiler.IDLMojo.execute(IDLMojo.java:102)

at org.opensplice.dds.idlcompiler.IDLMojoTest.testIDLCompilation(IDLMojoTest.java:23)


위의 결과인데 2개를 실행하여 1개의 error가 있다고 나옵니다.


그 다음 과정은 다음과 같습니다.

The camel-dds component requires the Maven repository to contain the OpenSplice dcpssaj.jar, so this needs to be installed before the component can be built. To do this run:-


$ mvn install:install-file -Dfile=$OSPL_HOME/jar/dcpssaj.jar -DgroupId=org.opensplice.dds -DartifactId=dcpssaj -Dversion=1.0-LATEST -Dpackaging=jar


On windows replace $OSPL_HOME/jar/dcpssaj.jar with %OSPL_HOME%\jar\dcpssaj.jar.


Note that we install the dcpssaj jar as version 1.0-LATEST rather than a version number specific to the OpenSplice installation. This is so that the Camel component can be run with multiple versions of OpenSplice without the need for multiple branches of the code base that define different project dependencies.


This command will also force Maven to download some dependencies. Now we may build the camel-dds component. The camel-dds components require the use of the OpenSplice daemon, so this needs to be started by running:-


$ ospl start


Once the daemon has been started change directory to camel-dds/components/camel-dds and run:-


$ mvn install


There are four examples included in the repository. You can find these in the camel-dds/examples directory. Each example includes its own README file which contains details of how to compile and run the example.


저작자 표시
Trackback 0 : Comment 0

Trackback Address :: http://hyungjunyim.tistory.com/trackback/430 관련글 쓰기

Write a comment


OpenSplice DDS와 Apache Camel을 위한 환경구축

Activity/1. Internet of Things 2012/04/20 14:06

OpenSplice DDS와 Apache Camel을 동작시키기 위한 환경구축

PrismTech OpenSplice Adds to Open Source SOA

기사 참고: http://www.idevnews.com/stories/4103/PrismTech-OpenSplice-Adds-to-Open-Source-SOA

PrismTech is bringing DDS support to Apache Camel with the release of its OpenSplice DDS Connector. Developed under a contract with MIT Lincoln Laboratory, the new connector to Apache Camel brings more Open Source SOA options to developers.


OpenSplice DDS Camel Component 확인을 위해 설치

Pre-requisites:

1. Java SDK 6.

2. Apache Maven 2.0.9 or greater*

OpenSpliceDDS 4.3 or greater**


Optional software:-


3. Eclipse: 3.4 (eclipse-java-ganymede-SR2-win32.zip)

4. Additional Eclipse Plugins using Eclipse Update mechanism:

Eclipse Maven Plugin Update Site:

    http://m2eclipse.sonatype.org/update/

    (Select Maven Integration Components only)


*The processes described below have been tested against Apache Maven 2.0.10.

** The OpenSplice DDS Camel Component has been tested against versions of OpenSplice DDS from 4.3 to 5.3.

1. Java SDK 설치
- JDK 6 update 30 Download: http://www.oracle.com/technetwork/java/javase/downloads/index.html


2. Apache Maven 설치
- Download Maven: http://maven.apache.org/download.html
- 원하는 디렉토리에 압축 해제: C:\Program Files\apache-maven-2.0.11
- 시스템 속성에서 환경변수의 시스템 변수에 추가

M2_HOME: C:\Program Files\apache-maven-2.0.11
M2: %M2_HOME%\bin 

PATH: %M2% 추가 



- 명령 프롬프트(win + r) 후 cmd 실행하여 확인

> mvn --version



3. Eclipse 3.4 설치
- IDE for Java Developers: http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/ganymede/SR2/eclipse-java-ganymede-SR2-win32.zip

4. Additional Eclipse Plugins using Eclipse Update mechanism:
- Eclipse Maven Plugin Update Site: http://m2eclipse.sonatype.org/update/
(Select Maven Integration Components only)

이 부분 해결하느라 시간이 너무 걸렸다 ㅠ
여기저기 찾아보니 Eclipse의 Help 메뉴에 Software Update에서 http://m2eclipse.sonatype.org/sites/m2e/ 만 Update 사이트로 넣으면 Maven Integration for Eclipse를 설치할 수 있도록 나오는데 난 나오지가 않았다.
그래서 해결한 것은 위의 링크를 가보면 archive형태로 되어 있다.

여기서 나는 0.12.1.201110112-1712 더 붙여 넣었더니 성공.....

아래의 Duplicate URL이 나온 이유는 이미 넣어놨기 때문이므로 Add Site로 http://m2eclipse.sonatype.org/sites/m2e/0.12.1.20110112-1712/ 을 입력하세요.

Add Site를 한 후 Available Software에 Maven Integration for Eclipse가 나옵니다. 거기에서 여기서 필요한 Maven Integration for Eclipse만 선택하여 설치합니다.

위의 그림에서 Install을 누르게 되면 설치하겠냐는 메시지가 나오게 됩니다.

Next를 누르면 라이센스 동의를 할 것인지 나오게 되는데 여기는 agree를 선택

이렇게 하고 finish를 누르면 설치가 진행됩니다. 진행하는 과정에서 추가로 필요한 사항이 있으면 같이 설치하세요 :)

설치가 완료되면 Eclipse를 재시작할 것인지 물어보는데 재시작합니다.

재시작하고 다시 Eclipse의 Help메뉴에서 Software Update에서 Installed Software를 보시면 Maven Integration for Eclipse가 설치되어 있는 모습을 볼 수 있습니다.

자, 여기까지는 OpenSplice DDS와 Apache Camel을 위한 환경구축 내용입니다.


저작자 표시
Trackback 0 : Comment 0

Trackback Address :: http://hyungjunyim.tistory.com/trackback/377 관련글 쓰기

Write a comment


윈도우 7 캡쳐도구 사용

Activity/Development Tips 2012/04/20 10:36

윈도우 7이 나오면서 캡쳐를 편하게 하기 위한 도구인 "캡쳐 도구"기능이 있습니다.


실행을 하기 위해서는 

"시작→보조 프로그램캡쳐 도구"로 가시면 되고요,

 

걍 캡쳐도구 실행하면 아래처럼 나오는데

 

새로 만들기(N)의 오른쪽 화살표를 누르면

 

4가지로 캡쳐할 수 있는 기능이 있는데

-       자유형 캡쳐는 말 그대로 별 모양이든 동그란 모양이든 마우스로 움직이는대로 캡쳐가 되는 것

-       사각형 캡쳐는 마우스 드래그로 사각형 모양의 캡쳐가 되는 것

-       창 캡쳐는 캡쳐하고 싶은 창을 선택하면 그 창이 캡쳐가 되는 것

n  한 가지 팁으로 창 캡쳐는 창이 띄워져 있는 상태에서 alt + prtScn 버튼을 동시에 누르면 복사가 된 상태라서 파워포인트나 그림판에 ctrl+V(붙여넣기)로 넣을 수 있음

-       전체화면 캡쳐는 다들 아시겠죠?

 

캡쳐를 하고 나면 아래처럼 뜨는데 파일로 저장을 하거나 e-mail로 보낼 수 있고,

그림 위에다가 펜이나 형광펜으로 효과를 주는 기능도 있습니다.


저작자 표시

'Activity > Development Tips' 카테고리의 다른 글

윈도우 7 캡쳐도구 사용  (0) 2012/04/20
특정 사이트 접근 차단  (0) 2012/03/11
MSSQL Server 2008 ODBC Connection Sample (C++)  (2) 2008/12/12
WPF and 3D  (0) 2008/09/29
Trackback 0 : Comment 0

Trackback Address :: http://hyungjunyim.tistory.com/trackback/427 관련글 쓰기

Write a comment

◀ PREV : [1] : [2] : [3] : [4] : [5] : ... [23] : NEXT ▶