ComputationalRadiationPhysics / isaac

In Situ Animation of Accelerated Computations :microscope:
http://ComputationalRadiationPhysics.github.io/isaac/
GNU Lesser General Public License v3.0
25 stars 15 forks source link

libjpeg_turbo questions #93

Closed PrometheusPi closed 5 years ago

PrometheusPi commented 5 years ago

@FelixTUD The script you gave me a while ago in March for installing all isaac dependencies works fine on hemera but I have to questions:

1.) You added your local libjpeg-turbo to the CMAKE_PREFIX_PATH but set -DISAAC_JPEG=OFF- doesn't that make setting the cmake path beforehand obsolete?

2.) From the code, I see an explicit warning that isaac should be installed with libjpeg. What are the drawbacks and why could we/you set -DISAAC_JPEG=OFF?

3.) How did you install libjpeg-turbo?

PrometheusPi commented 5 years ago

Regarding question 3.) @psychocoderHPC suggested the following solution:

assuming ~/src, ~/lib, and ~/build exist:

cd ~/src
git clone git@github.com:libjpeg-turbo/libjpeg-turbo.git
cd ~/build
cmake -DCMAKE_INSTALL_PREFIX=~/lib/libjpeg-turbo -DWITH_SIMD=OFF ../libjpeg-turbo/
# WITH_SIMD=OFF avoids using the `nasm` on hemera.  
make install
ax3l commented 5 years ago

What's the problem with nasm/simd compiles on Hemera? Will definitely cost performance/latency if this is disabled.

PrometheusPi commented 5 years ago

Building the isaac server without libjpeg allows that the simulation at least runs - with libjpeg enabled the simulation does not start. Both do not show any images.

PrometheusPi commented 5 years ago

Seems to be an issue with the version of libwebsockets. See https://github.com/ComputationalRadiationPhysics/picongpu/pull/2940

PrometheusPi commented 5 years ago

Solved when using libwebsocket 2.1-stable or 2.2-stable

ax3l commented 5 years ago

@PrometheusPi can you please open a new issue, about adding support for newer versions of libwebsockets? In the meantime, please let us update the docs of ISAAC to narrow down the currently supported versions of libwebsockets.