Skip to content

Commit

Permalink
tools: locateSymbol
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit128 committed Oct 18, 2024
1 parent c0777e0 commit 937c1ab
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Cassiopee/Envs/env_Cassiopee_local
Original file line number Diff line number Diff line change
Expand Up @@ -254,15 +254,13 @@ else if ($MAC == "visio_python3") then
module unload $x
end
module load python/3.6.1
# Set next two lines only if python is not python
setenv PYTHONEXE python3
module load gcc/4.8.1
module load intel/17.0.4
module load impi/17
# Nombre de threads
setenv OMP_NUM_THREADS 16
#setenv KMP_AFFINITY "verbose,granularity=fine,proclist=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],explicit"


else if ($MAC == "visio") then
#------------------------------- visio ---------------------------------------
setenv ELSAPROD vis_r8
Expand All @@ -277,8 +275,7 @@ else if ($MAC == "visio") then
module load impi/17
# Nombre de threads
setenv OMP_NUM_THREADS 16
#setenv KMP_AFFINITY "verbose,granularity=fine,proclist=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],explicit"


else if ($MAC == "visung") then
#------------------------------- visung ---------------------------------------
setenv ELSAPROD visung_r8
Expand Down
2 changes: 2 additions & 0 deletions tools/install
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ cp tarballAll "$INSTALLPATH"
cp tarex "$INSTALLPATH"
echo 'Installing propre'
cp propre "$INSTALLPATH"
echo 'Installing locateSymbol'
cp locateSymbol "$INSTALLPATH"
24 changes: 24 additions & 0 deletions tools/locateSymbol
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#! /bin/sh

if ([ $# -eq 0 ])
then
echo 'locateSymbol usage :'
echo 'locateSymbol dirlibs symbol'
echo 'Locate symbol in all .so'
exit
fi
# locate a symbol in a directory of .so
for f in "$1"/*.so
do
ret=`nm $f 2> /dev/null | grep $2`
if [[ "$ret" != "" ]]; then
echo $(basename $f) ':' $ret
fi
done
for f in "$1"/*.a
do
ret=`nm $f 2> /dev/null | grep $2`
if [[ "$ret" != "" ]]; then
echo $(basename $f) ':' $ret
fi
done

0 comments on commit 937c1ab

Please sign in to comment.