Monday, April 17, 2017

Generating public keys from a SSH private key

If you just need to generate a Public Key from SSH Private Key, you will need to
# ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/
where  -y output the public key

  1. How do I retrieve the public key from a SSH private key?

Wednesday, April 12, 2017

Installing OpenCV on CentOS 6 on yum

Installing OpenCV using CentOS 6 using yum is very straightforward. For CentOS 6,
# yum install python-devel python-nose python-setuptools gcc gcc-gfortran gcc-c++ blas-devel lapack-devel atlas-devel

# yum install opencv

Monday, April 10, 2017

Managing MATLAB Users using MLM options for FlexLM

Step 1: Create a file to mlm.opt

Step 2: Edit your license.dat file
SERVER myMATLABLicense 00000000000000009
DAEMON MLM "/usr/local/MATLAB/R2016b/etc/MLM" port=1708 options="/usr/local/MATLAB/R2016b/etc/mlm.opt"

Step 3: Prepare mlm.opt
# Make user names and host names case insensitive when
# listed in a GROUP or HOST_GROUP.  This is not
# required but it is here to prevent some common errors.

# Define GROUP Users
GROUP MATLAB_BLOCK_USERS user1 user2 user3
GROUP MATLAB_INC_USERS user4 user5 user6

# EXCLUDE Users from MATLAB and selected Toolboxes
EXCLUDE "Image_Toolbox asset_info=111111" GROUP MATLAB_BLOCK_USERS
EXCLUDE "Signal_Toolbox asset_info=111111" GROUP MATLAB_BLOCK_USERS

# RESERVE for selected for user1
RESERVE 1 "SIMULINK asset_info=111111" USER user1

# Restrict the number of licenses that can be used on machine "server1"
MAX 4 "MATLAB asset_info=111111" HOST server1

# To exclude ALL features 

#Includes a user or pre-defined group of users, etc.
#Anyone not in an INCLUDEALL statement is not allowed to use these features. 

  2. The Options File
  3. Is there a way to administer FLEXnet based licenses? How do I create an Options file?

Thursday, March 2, 2017

Using Intel IMB-MPI1 to check Fabrics and expected performances

In your .bashrc, do source the
source /usr/local/intel_2015/parallel_studio_xe_2015/bin/ intel64
source /usr/local/intel_2015/impi/ intel64
source /usr/local/intel_2015/composerxe/bin/ intel64
source /usr/local/intel_2015/mkl/bin/ intel64

To simulate 3 workloads pingpong, sendrecv, and exchange with IMB-MPT1
$ mpirun -r ssh -RDMA -n 512 -env I_MPI_DEBUG 5 IMB-MPT1

Friday, February 24, 2017

Compiling Intel FFTW3 and FFTW2 Interface Wrapper Library

FFTW3 wrappers to Intel MKL are delivered both in Intel MKL and as source code which can be compiled to build to build standalone wrapper library with exactly the same functionality. The source code for the wrappers, makefiles are found .....\interfaces\fftw3xc subdirectory in the Intel MKL Directory

Intel FFTW3 Interface Wrapper Library. Do the same for fftw3xc and fftw3xf
# cd interfaces/fftw3xc
# make libintel  INSTALL_DIR=$MKLROOT/lib/intel64
Once Compiled, the libraries are kept $MKLROOT/lib/intel64  

Intel FFTW2 Interface Wrapper Library. Do the same for fftw2xc and fftw2xf
# cd interfaces/fftw2xc
# make libintel  PRECISION=MKL_DOUBLE
# make libintel  PRECISION=MKL_SINGLE
Once Compiled, the libraries are kept $MKLROOT/lib/intel64