Friday, January 31, 2020

Ubuntu 18 Cuda 10 under NVidia Geforce 710 2GB






wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin 
sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600 
wget http://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda-repo-ubuntu1804-10-2-local-10.2.89-440.33.01_1.0-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1804-10-2-local-10.2.89-440.33.01_1.0-1_amd64.deb
sudo apt-key add /var/cuda-repo-10-2-local-10.2.89-440.33.01/7fa2af80.pub 
sudo apt-get update 
sudo apt-get -y install cuda

Thursday, January 30, 2020

INSULINA y TRANSAMISAS (TGP y TGO)

INSULINA

[1] Homa-Ir https://amhigo.com/mi-diagnostico/calculadoras/indice-de-resistencia-a-la-insulina-homa-ir
[2] https://www.clinicalascondes.cl/CENTROS-Y-ESPECIALIDADES/Centros/Centro-de-Diabetes/Noticias/Te-puede-interesar/%C2%BFTiene-usted-resistencia-a-la-insulina-
[3] https://es.theepochtimes.com/ocho-alimentos-revertir-resistencia-insulina_9392.html
[4] Vitamina E https://cuidateplus.marca.com/alimentacion/nutricion/2018/03/14/alimentos-vitamina-e-162116.html

TRANSAMISAS (TGP y TGO)

[1] Niveles  https://www.webconsultas.com/curiosidades/transaminasas-por-que-suben
[2] Niveles https://www.hepato.com/es/2001/05/as-transaminases-ast-ou-tgo-e-alt-ou-tgp/
[3] Tabls de valores http://2011.elmedicointeractivo.com/formacion_acre2007/pdf/1072.pdf

Thursday, December 12, 2019

Fedora mySql



fix Table 'information_schema.SCHEMATA' doesn't exist

$sudo mysql_upgrade -u root -p --force

Photo3D Resources



[1] Convert image + depth map in 3D animation http://depthy.me
[2] depth map generator https://3dphoto.io/uploader/
[3] Manual depth creation https://triaxes.com/articles/manual-depth-map-creation/
[4] Complete pipeline https://www.omnivirt.com/3d-photo/
[5] https://www.brainfevermedia.com/DepthCamProTutorial.html

Tuesday, December 10, 2019

Sunday, December 08, 2019

Matlab 3D meshes and Volumes



[1] meshgrid https://la.mathworks.com/help/matlab/ref/meshgrid.html

[2] isosurface to obj file http://www.aleph.se/Nada/Ray/matlabobj.html


Thursday, November 21, 2019

Linux System Information



Find if your Linux is 64 bit is by using:

$getconf LONG_BIT

`uname -m` tells only about the kernel, the userspace and distro can be still 32-bit. Similarly `lscpu` only tells what the CPU is capable of, not if OS, kernel and distro are 32 or 64 bit.
 
 
$file /lib/systemd/systemd
$lscpu
$uname -i
$uname -m 
$dpkg --print-architecture
 

Tuesday, November 19, 2019

cuda 8.0 compile related


Compile cuda-z

    https://sourceforge.net/p/cuda-z/code/HEAD/tree/trunk/


Cuda 8.0 and Qt5


$qmake file.pro

$make


1) Error fPIC

error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC (-fPIE is not enough)."

 #  error "You must build your code with position independent code if Qt was built with -reduce-relocations. "\


#sol, add next parameter in Makefile


$nvcc -shared -Xcompiler -fPIC

2) Compile error , comment CZ_VER_BUILD block

3) Error link stage

bld/o/czdialog.o: In function `CZDialog::getCudaDeviceNumber()':

czdialog.cpp:(.text+0x421): undefined reference to `CZCudaDeviceFound'

bld/o/czdeviceinfo.o: In function `CZCudaDeviceInfo::prepareDevice()':

czdeviceinfo.cpp:(.text+0x569): undefined reference to `CZCudaCalcDeviceSelect'

bld/o/czdeviceinfo.o: In function `CZCudaDeviceInfo::updateInfo()':

czdeviceinfo.cpp:(.text+0x5c5): undefined reference to `CZCudaCalcDeviceBandwidth'

czdeviceinfo.cpp:(.text+0x5d2): undefined reference to `CZCudaCalcDevicePerformance'

bld/o/czdeviceinfo.o: In function `CZCudaDeviceInfo::readInfo()':

czdeviceinfo.cpp:(.text+0x448): undefined reference to `CZCudaReadDeviceInfo'

bld/o/czdeviceinfo.o: In function `CZCudaDeviceInfo::prepareDevice()':

czdeviceinfo.cpp:(.text+0x585): undefined reference to `CZCudaPrepareDevice'

bld/o/czdeviceinfo.o: In function `CZCudaDeviceInfo::cleanDevice()':

czdeviceinfo.cpp:(.text+0x615): undefined reference to `CZCudaCleanDevice'

bld/o/czcommandline.o: In function `CZCommandLine::printDeviceList()':

czcommandline.cpp:(.text+0x45b5): undefined reference to `CZCudaDeviceFound'

czcommandline.cpp:(.text+0x46e8): undefined reference to `CZCudaReadDeviceInfo'

bld/o/czcommandline.o: In function `CZCommandLine::exec()':

czcommandline.cpp:(.text+0x4b16): undefined reference to `CZCudaDeviceFound'

czcommandline.cpp:(.text+0x4e2c): undefined reference to `CZCudaReadDeviceInfo'

czcommandline.cpp:(.text+0x4fbb): undefined reference to `CZCudaPrepareDevice'

czcommandline.cpp:(.text+0x4fd0): undefined reference to `CZCudaCalcDeviceBandwidth'

czcommandline.cpp:(.text+0x52fe): undefined reference to `CZCudaCalcDevicePerformance'

czcommandline.cpp:(.text+0x561f): undefined reference to `CZCudaCleanDevice'

bld/o/main.o: In function `testCudaPresent()':

main.cpp:(.text+0x2): undefined reference to `CZCudaCheck'

bld/o/main.o: In function `getCudaDeviceNum()':

main.cpp:(.text+0x4c): undefined reference to `CZCudaDeviceFound'

main.cpp:(.text+0x96): undefined reference to `CZCudaReadDeviceInfo'


#sol, change order of object files


$ g++ -m64 -Wl,-O1 -o bin/cuda-z bld/o/main.o bld/o/cudainfo.o bld/o/czdialog.o bld/o/czdeviceinfo.o bld/o/czdeviceinfodecoder.o bld/o/czcommandline.o bld/o/log.o bld/o/platform.o bld/o/qrc_cuda-z.o bld/o/moc_czdialog.o bld/o/moc_czdeviceinfo.o bld/o/moc_czdeviceinfodecoder.o bld/o/moc_czcommandline.o   -L /usr/local/cuda/lib64 -L/usr/X11R6/lib64 -lcudart_static -ldl -lm -lrt -lQt5Widgets -lQt5Gui -lQt5Network -lQt5Core -lGL -lpthread

4) Execution error
./cuda-z: error while loading shared libraries: bld/o/cudainfo.o: cannot open shared object file: No such file or directory


#sol, move from bin to ..

$./cuda-z


Wednesday, November 13, 2019

Saturday, October 26, 2019

Vulkan Resources


[1] Vulkan-sdk https://www.lunarg.com/vulkan-sdk/
[2] Download https://vulkan.lunarg.com/
[3] Document
https://vulkan.lunarg.com/doc/view/1.1.101.0/linux/getting_started.html
https://vulkan.lunarg.com/doc/view/1.1.70.1/linux/getting_started.html
[4] C++ binding https://github.com/KhronosGroup/Vulkan-Hpp

[5] Examples https://github.com/SaschaWillems/Vulkan

[] gli, C++ image library. Works with OpenGL or Vulkan https://github.com/g-truc/gli

Sunday, October 20, 2019

https://github.com/alexjc/neural-enhance
https://github.com/idealo/image-super-resolution

Saturday, October 19, 2019

Fluids mandatory lectures



Navier-Stokes-equations
[0] Thesis: Parallel architecture to solve NSE https://tel.archives-ouvertes.fr/tel-01152623/document


[1] https://www.quora.com/What-are-the-uses-of-the-Bernoulli-equations-Eulers-equations-and-the-Navier-Stokes-equations-and-when-do-we-apply-them
[2] Prof. Wang http://web.cse.ohio-state.edu/~wang.3602/
[2] http://web.cse.ohio-state.edu/~wang.3602/courses/cse3541-2019-fall/
[2] Course http://web.cse.ohio-state.edu/~wang.3602/courses/cse788-2011-fall/
[2.1] SPH Water Simulation equations http://web.cse.ohio-state.edu/~wang.3602/courses/cse788-2011-fall/results/Yi_Liu/SPH%20Water%20Simulation.htm
[3] https://www.comsol.jp/multiphysics/fluid-flow-conservation-of-momentum-mass-and-energy
[4] Matthias MĆ¼ller http://matthias-mueller-fischer.ch/
[5] CFD Intro https://www.mathematik.uni-dortmund.de/~kuzmin/cfdintro/lecture1.pdf


Others
[1] CSG https://evanw.github.io/csg.js/

Sunday, October 06, 2019

Quadtree/Octree Resources



Dual Marching Cubes
[1] C++ https://github.com/planaria/dmc
[2] C++ https://github.com/dominikwodniok/dualmc
[3] Dual MC, C++ https://github.com/VVingerfly/surfRecon

Python Quadtree
[1] https://github.com/karimbahgat/Pyqtree
[2] https://github.com/ceumicrodata/quadtree
[3] https://kpully.github.io/Quadtrees/



References:
[1] quad-boost https://arxiv.org/pdf/1607.03292.pdf
[2] Morton code http://www.cs.umd.edu/~hjs/pubs/ShaffIVC88.pdf
[3] https://www.slideserve.com/bessie/dual-marching-cubes

Monday, September 30, 2019

Thursday, September 26, 2019

PCA/WPCA

Video Lectures
[1] SVD to PCA https://www.youtube.com/watch?v=mBcLRGuAFUk

Lectures
[1] https://skymind.ai/wiki/eigenvector
[2] https://www.projectrhea.org/rhea/index.php/PCA_Theory_Examples


[3] PCA Theory Example http://www.cs.otago.ac.nz/cosc453/student_tutorials/principal_components.pdf

[4] Animation 2D PCA https://www.intmath.com/matrices-determinants/eigenvalues-eigenvectors-concept-applet.php


[5] PCA on OpenCV
https://robospace.wordpress.com/2013/10/09/object-orientation-principal-component-analysis-opencv/


[6] Wavelets, Fourier, Kalman http://www.cs.otago.ac.nz/cosc453/





Resources:
[1] https://machinelearningmastery.com/calculate-principal-component-analysis-scratch-python/
[2] https://jakevdp.github.io/PythonDataScienceHandbook/05.09-principal-component-analysis.html
[3] Draw 2D principal axis PCA https://stackoverflow.com/questions/18299523/basic-example-for-pca-with-matplotlib

Saturday, September 21, 2019

Alternatives to Renderman

https://github.com/POV-Ray/povray/tree/3.7-stable/unix

Friday, September 20, 2019

Point Splatting codes


Compile GLviz
[1] code https://github.com/sebastianlipponer/glviz

     error: storage size of ‘shell_surface_listener’ isn’t known
 static const struct wl_shell_surface_listener shell_surface_listener = {


      solution: add #include "wayland-client-protocol.h" in SDL_waylandwindow.c


Not able to make successfully - undefined reference to symbol 'XCreateBitmapFromData'
add into extern/anttweakbar/CMakeLists.txt after set_target_properties(anttweakbar ... )

if (UNIX)
    target_link_libraries(anttweakbar X11)
endif()


Based on GLViz
[2] Surface Splatting code https://github.com/sebastianlipponer/surface_splatting

      error: storage size of ‘shell_surface_listener’ isn’t known
 static const struct wl_shell_surface_listener shell_surface_listener = {


      solution: add #include "wayland-client-protocol.h" in SDL_waylandwindow.c

Not able to make successfully - undefined reference to symbol 'XCreateBitmapFromData'
add into extern/anttweakbar/CMakeLists.txt after set_target_properties(anttweakbar ... )

if (UNIX)
    target_link_libraries(anttweakbar X11)
endif()

Graphics Guide



Persons:

[1] Point Splatting https://cgg.mff.cuni.cz/~jaroslav/

Running apps

Runtastic (I uninstalled because force to update your device - Internet connection problems) Runkeeper  (Wrong GPS tracking) Strava   (Curr...