User Tools

Site Tools


gpu_isac

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
gpu_isac [2020/06/18 12:23]
fschoenfeld
gpu_isac [2020/06/18 12:25]
fschoenfeld
Line 49: Line 49:
   - **Adjust sparx libraries** to work with the C++/CUDA library we just compiled:   - **Adjust sparx libraries** to work with the C++/CUDA library we just compiled:
     - <code>cd ../eman2/sparx/libpy</code>     - <code>cd ../eman2/sparx/libpy</code>
-    - <code>sed -i.bkp "s|/home/schoenf/work/code/cuISAC/cuda|$(realpath ../../../cuda)|g" applications.py<code>+    - <code>sed -i.bkp "s|/home/schoenf/work/code/cuISAC/cuda|$(realpath ../../../cuda)|g" applications.py</code>
     - <code>sed -i.bkp2 's|statistics.sum_oe( data, "a", CTF, EMData(), myid=myid|statistics.sum_oe( data, "a", CTF, EMData()|g' applications.py</code>     - <code>sed -i.bkp2 's|statistics.sum_oe( data, "a", CTF, EMData(), myid=myid|statistics.sum_oe( data, "a", CTF, EMData()|g' applications.py</code>
   - **Set the correct libraries and environment:**   - **Set the correct libraries and environment:**
     - <code>cd ../bin</code> //Note: We are now in the **/eman2/sparx/bin** folder of your GPU ISAC installation folder.//     - <code>cd ../bin</code> //Note: We are now in the **/eman2/sparx/bin** folder of your GPU ISAC installation folder.//
-    - <code>ln -rs ../libpy/* .</code> Note: //Don't forget the dot at the end!//+    - <code>ln -rs ../libpy/* .</code> //Note: Don't forget the dot at the end!//
     - <code>sed -i.bkp "s|/home/schoenf/applications/sphire/v1.1/envs/sphire_1.3/bin|$(dirname $(which sphire))|g" sxisac2_gpu.py</code>     - <code>sed -i.bkp "s|/home/schoenf/applications/sphire/v1.1/envs/sphire_1.3/bin|$(dirname $(which sphire))|g" sxisac2_gpu.py</code>
     - <code>sed -i.bkp2 <nowiki>"</nowiki>s/^\(.*options, args.*\)$/\1\n    os.environ['CUDA_VISIBLE_DEVICES'] = options.gpu_devices\n    options.gpu_devices = ','.join(map(str, range(len(options.gpu_devices.split(',')))))/g<nowiki>"</nowiki> sxisac2_gpu.py</code>     - <code>sed -i.bkp2 <nowiki>"</nowiki>s/^\(.*options, args.*\)$/\1\n    os.environ['CUDA_VISIBLE_DEVICES'] = options.gpu_devices\n    options.gpu_devices = ','.join(map(str, range(len(options.gpu_devices.split(',')))))/g<nowiki>"</nowiki> sxisac2_gpu.py</code>
gpu_isac.txt ยท Last modified: 2021/05/08 00:41 by shaikh