resolved the issue. It seems when I build pytorch code with
python setup.py install  the shared object executables are installed without execution permission on files - as
-rw-r--r--  . After manually correcting file permissions with
chmod +x <file.so> , the link issues are resolved.