Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97477519
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
Sat, Jan 4, 12:39
Size
299 B
Mime Type
text/x-c
Expires
Mon, Jan 6, 12:39 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23411964
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