Commit 9f86416d authored by Andreas Gocht's avatar Andreas Gocht

add workaround for cuda threads

this commits adds a patch, that diables the checking for parallel regions
at the end of the program run. This is needed for TF, but might have side effects
parent 5efc19fd
Index: src/measurement/scorep_location.c
===================================================================
--- src/measurement/scorep_location.c (Revision 13261)
+++ src/measurement/scorep_location.c (Arbeitskopie)
@@ -302,7 +302,7 @@
void
SCOREP_Location_FinalizeLocations( void )
{
- assert( !SCOREP_Thread_InParallel() );
+ //assert( !SCOREP_Thread_InParallel() );
SCOREP_Location* location_data = location_list_head;
while ( location_data )
......@@ -18,9 +18,10 @@ Namespace: amd64
%files
mca-btl-openib-device-params.ini /tmp/
cudnn-9.0-linux-x64-v7.1.tgz /tmp/
deactivate_location_check.patch /tmp/
%post
UPDATE_SCOREP=false
UPDATE_SCOREP=true
UPDATE_PYTHON_BINDINGS=true
apt-get update
......@@ -109,7 +110,7 @@ Namespace: amd64
cd /apps
if [ ! -d scorep -o $($UPDATE_SCOREP) ]; then
if [ ! -d scorep -o $UPDATE_SCOREP ]; then
#get a recent Score-P from trunk (the only one that have the gcc-7 patch)
......@@ -124,7 +125,7 @@ Namespace: amd64
libtool --version
cd /apps
if [ $($UPDATE_SCOREP) ]; then
if [ $UPDATE_SCOREP ]; then
rm -rf scorep
rm -rf /usr/lib/libscorep*
rm -rf /usr/lib/libotf2*
......@@ -142,6 +143,7 @@ Namespace: amd64
svn co --username scorep --password foo42bar --non-interactive https://silc.zih.tu-dresden.de/svn/silc-root/branches/TRY_TUD_io_recording scorep
cd scorep
patch -p0 < /tmp/deactivate_location_check.patch
./bootstrap
mkdir build
cd build
......@@ -175,7 +177,7 @@ Namespace: amd64
cd /apps
if [ ! -d scorep_binding_python -o $($UPDATE_SCOREP) -o $($UPDATE_PYTHON_BINDINGS) ]; then
if [ ! -d scorep_binding_python -o $UPDATE_SCOREP -o $UPDATE_PYTHON_BINDINGS ]; then
if [ ! -d scorep_binding_python ]; then
git clone https://github.com/score-p/scorep_binding_python
cd scorep_binding_python
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment