Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96691764
omp_funs.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Dec 29, 21:29
Size
299 B
Mime Type
text/x-c
Expires
Tue, Dec 31, 21:29 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23226160
Attached To
R1448 Lenstool-HPC
omp_funs.c
View Options
//omp_funs.c
//functions usefull for OpenMP paralellisation
#ifdef _OPENMP
#include "omp.h"
#endif
#include <stdio.h>
void
check_not_in_parallel
(
const
char
*
s
)
{
#ifdef _OPENMP
if
(
omp_in_parallel
())
{
fprintf
(
stderr
,
"Error | omp_funs.c/check_not_in_parallel | %s"
,
s
);
}
#endif
}
Event Timeline
Log In to Comment