Sunday, July 3, 2016

Parallel programming with python

Module multiprocessing vs pp (parallel python) :
http://stackoverflow.com/questions/5181949/using-the-multiprocessing-module-for-cluster-computing

multiprocessing looks like better, general, if multiple node doesn't necessary.

multiprocessing
https://docs.python.org/2/library/multiprocessing.html

List of the libraries :
https://wiki.python.org/moin/ParallelProcessing

example)
http://www.parallelpython.com/content/view/17/31
http://www.parallelpython.com/content/view/15/30/#QUICKSMP
http://www.parallelpython.com/content/view/15/30/#QUICKCLUSTERS
To launch ppserver,
$ python /usr/local/bin/ppserver.py -s mypassword

#myclient.py
import pp
server = pp.Server(ppservers=("127.0.0.1", secret='mypassword')

Monday, March 28, 2016

Wednesday, November 18, 2015

파이썬 빌드(컴파일)

https://docs.python.org/2/extending/building.html

A distutils package contains a driver script, setup.py. This is a plain Python file, which, in the most simple case, could look like this:
from distutils.core import setup, Extension

module1 = Extension('demo',
                    sources = ['demo.c'])

setup (name = 'PackageName',
       version = '1.0',
       description = 'This is a demo package',
       ext_modules = [module1])

With this setup.py, and a file demo.c, running
python setup.py build

will compile demo.c, and produce an extension module named demo in the build directory. Depending on the system, the module file will end up in a subdirectory build/lib.system, and may have a name like demo.so ordemo.pyd.

Tuesday, November 10, 2015

ray tracing survey

ray tracing vs casting :
http://permadi.com/1996/05/ray-casting-tutorial-table-of-contents/

ray tracing :
https://www.cs.unc.edu/~rademach/xroads-RT/RTarticle.html

c++ example :
http://www.cosinekitty.com/raytrace/chapter05_cpp_code.html

ray tacing, ray packet, SAH(Surface Area Heuristic) :
http://www.cs.cmu.edu/afs/cs/academic/class/15869-f11/www/lectures/14_raytracing.pdf

아직 조사중.

Saturday, October 24, 2015

cmake + qt5 + vtk, for VS 2013 (community version)

1) Setup Qt5
In my case, I downloaded Qt5.4.2, qt-opensource-windows-x86-msvc2013_opengl-5.4.2.exe from here

2) Setup VTK
I haven't checked that QVtkWidget works for Qt5 at older VTK version,
but at least, it works for version 6.3.0.
After download source code, configure project for vs2013 with cmake.


After configure, check box for VTK_Qt, and click configure again.
If error message about "can't find package Qt5 ~~ ", then edit cmakelists.txt in VTK-6.3.0 as follows.


Just add the code on red line. After reedit, configure will work. Then generate project.

3) Compile VTK

4) Set automoc file.
-- I'll add about this topic. soon --

Friday, October 16, 2015

SEH error

GoogleTest, QVTKWidget에 멤버변수로 std::vector<~~>   를 여러개 추가하다가, SEH 에러 발생함. 아래 링크 참고로 원인 파악중.



http://stackoverflow.com/questions/13157671/seh-exception-with-code-0xc0000005-thrown-in-the-test-body