Skip to content

Commit e32105e

Browse files
SPEX: demo_threaded, remove int from omp for loop
1 parent e82231f commit e32105e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SPEX/Demo/spex_demo_threaded.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,10 @@ int main( int argc, char *argv[] )
133133

134134
bool test_pass = true ;
135135

136+
int id ;
136137
#pragma omp parallel for num_threads(nthreads) schedule(static,1) \
137138
reduction(&&:test_pass)
138-
for (int id = 0 ; id < nthreads ; id++)
139+
for (id = 0 ; id < nthreads ; id++)
139140
{
140141
SPEX_info info = SPEX_thread_initialize ( ) ;
141142
if (info != SPEX_OK)

0 commit comments

Comments
 (0)