Skip to content

Commit 0c3f7e0

Browse files
fixed tabulations
1 parent bbb3361 commit 0c3f7e0

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

mkl/_mklinitmodule.c

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,28 +39,29 @@ static const char* verbose;
3939

4040
#if FORCE_PRELOADING
4141
#define VERBOSE(...) if(verbose) printf("mkl-service + Intel(R) MKL: " __VA_ARGS__)
42+
4243
static void restore_mtlayer(void) {
4344
if (mtlayer) {
44-
VERBOSE("Re-setting Intel(R) MKL_THREADING_LAYER=%s for the forked process\n", mtlayer); \
45-
setenv("MKL_THREADING_LAYER", mtlayer, 1);
45+
VERBOSE("Re-setting Intel(R) MKL_THREADING_LAYER=%s for the forked process\n", mtlayer);
46+
setenv("MKL_THREADING_LAYER", mtlayer, 1);
4647
} else {
47-
VERBOSE("Unsetting Intel(R) MKL_THREADING_LAYER variable for the forked process \n"); \
48-
unsetenv("MKL_THREADING_LAYER");
48+
VERBOSE("Unsetting Intel(R) MKL_THREADING_LAYER variable for the forked process \n");
49+
unsetenv("MKL_THREADING_LAYER");
4950
}
5051
}
5152
#endif
5253

5354
static void _preload_threading_layer(void) {
5455
#if FORCE_PRELOADING
55-
#define SET_MTLAYER(L) do { \
56+
#define SET_MTLAYER(L) do { \
5657
VERBOSE("setting Intel(R) MKL to use " #L " OpenMP runtime\n"); \
57-
mkl_set_threading_layer(MKL_THREADING_##L); \
58-
setenv("MKL_THREADING_LAYER", #L, 0); \
59-
pthread_atfork(NULL, NULL, &restore_mtlayer); \
58+
mkl_set_threading_layer(MKL_THREADING_##L); \
59+
setenv("MKL_THREADING_LAYER", #L, 0); \
60+
pthread_atfork(NULL, NULL, &restore_mtlayer); \
6061
} while(0)
61-
#define PRELOAD(lib) do { \
62-
VERBOSE("preloading %s runtime\n", lib); \
63-
dlopen(lib, RTLD_LAZY|RTLD_GLOBAL); \
62+
#define PRELOAD(lib) do { \
63+
VERBOSE("preloading %s runtime\n", lib); \
64+
dlopen(lib, RTLD_LAZY|RTLD_GLOBAL); \
6465
} while(0)
6566
/*
6667
* The following is the pseudo-code skeleton for reinterpreting unset MKL_THREADING_LAYER

0 commit comments

Comments
 (0)