Home
last modified time | relevance | path

Searched refs:checkCompile (Results 1 – 25 of 26) sorted by relevance

12

/petsc/config/BuildSystem/config/
H A Datomics.py25 if self.checkCompile('', '__asm__ __volatile__("rep; nop" ::: "memory");'):
29 …if self.checkCompile('','do { HMT_low; HMT_medium; __asm__ __volatile__ ("":::"memory"); } while (…
32 elif self.checkCompile('','__asm__ __volatile__ ("":::"memory");'):
42 if self.checkCompile('','__asm__ __volatile__ ("mfence":::"memory")'):
45 if self.checkCompile('','__asm__ __volatile__ ("lfence":::"memory")'):
48 if self.checkCompile('','__asm__ __volatile__ ("sfence":::"memory")'):
53 if self.checkCompile('','__asm__ __volatile__ ("sync":::"memory")'):
56 if self.checkCompile('','__asm__ __volatile__ ("lwsync":::"memory")'):
59 if self.checkCompile('','__asm__ __volatile__ ("eieio":::"memory")'):
64 if self.checkCompile('','__asm__ __volatile__ ("dmb":::"memory")'):
[all …]
H A Dtypes.py35 found = self.checkCompile(include,typeName+' a;\n(void)a')
79 …if not self.checkCompile(includes, body): return # checkLink can succeed even if checkCompile f…
83 if not self.checkCompile(includes, body): return
123 if self.checkCompile(includes, body, codeBegin=codeBegin, codeEnd='\n'):
139 if self.checkCompile('','__attribute__((visibility ("default"))) int foo(void);'):
147 if self.checkCompile('','__attribute__((visibility ("default"))) int foo(void);'):
180 if self.checkCompile(length):
H A Dheaders.py130 haveStdC = self.checkCompile(includes)
172 if self.checkCompile(includes, body):
187 if self.checkCompile('#include <math.h>\n', 'double pi = M_PI;\n(void)pi'):
189 …elif self.checkCompile('#define _USE_MATH_DEFINES 1\n#include <math.h>\n', 'double pi = M_PI;\n(vo…
202 if not self.checkCompile(includes, body):
H A DcompilersFortran.py125 …if self.checkCompile(body = ' interface\n subroutine a(b)\n type(*) b\n end s…
295 if not self.checkCompile(cinc+ccode, None, cleanup = 0):
363 if not self.checkCompile(modcode, None, cleanup = 0):
437 if not self.checkCompile(modcode, None, cleanup = 0):
H A Dcompilers.py128 if self.checkCompile('', 'float * '+kw+' x;\n(void)x'):
142 if not self.checkCompile(func1, None, cleanup = 0):
451 if self.checkCompile(includes,body):
759 if not self.checkCompile(cfunc, None, cleanup = 0):
1324 if not self.checkCompile(cinc+cxxCode, None, cleanup = 0):
1407 if self.checkCompile(includes, body):
1459 if self.checkCompile(includes, body):
H A DsetCompilers.py1139 elif not self.checkCompile(includes=dlct.includes,body=dlct.body):
1216 …if not self.checkCompile(includes=includes,body=body,cleanup=cleanup,codeBegin=codeBegin,codeEnd=c…
1888 if not self.checkCompile('! comment'):
1998 usePragma[lang] = self.checkCompile('#pragma GCC poison TEST')
2097 …if self.checkCompile('#include <unistd.h>','#ifndef _LFS64_LARGEFILE \n#error no largefile defines…
2209 …if not self.checkCompile('', 'int foo(int a) {\n return a+1;\n}\n\n', cleanup = 0, codeBegin = ''…
2728 …if not self.checkCompile(includes = 'char *'+symbol+'(void);\n',body = 'return '+symbol+'();\n', c…
H A Dbase.py552 …def checkCompile(self, includes = '', body = '', cleanup = 1, codeBegin = None, codeEnd = None, fl… member in Configure
/petsc/config/BuildSystem/config/utilities/
H A DfeatureTestMacros.py15 if self.checkCompile('#define _POSIX_C_SOURCE 200112L\n#include <sysctl.h>',''):
17 if self.checkCompile('#define _BSD_SOURCE\n#include<stdlib.h>',''):
19 if self.checkCompile('#define _DEFAULT_SOURCE\n#include<stdlib.h>',''):
21 …if self.checkCompile('#define _GNU_SOURCE\n#include <sched.h>','cpu_set_t mset;\nCPU_ZERO(&mset)'):
23 …if self.checkCompile('#define _GNU_SOURCE\n#include <stdlib.h>\n#include <dlfcn.h>','Dl_info info;…
H A Dmissing.py56 if not self.checkCompile('#include <sys/types.h>\n', 'u_short foo;\n(void)foo'):
84 if not self.checkCompile('#include <signal.h>\n', 'int i=SIG'+signal+';\n(void)i'):
105 if not (self.checkCompile(head,code('size_t')) or self.checkCompile(head,code('int'))):
126 if not self.checkCompile(head,code):
H A DcacheDetails.py113 if not self.checkCompile(includes=includes,body=func_name+'();'):
/petsc/config/BuildSystem/config/packages/
H A Dmkl_sparse_optimize.py29 result = self.checkCompile(sp2m_test)
43 result1 = self.checkCompile(deprecated_test1)
44 result2 = self.checkCompile(deprecated_test2)
H A DSuperLU_DIST.py104 …if not self.checkCompile('#include "superlu_ddefs.h"','#if !defined(_LONGINT)\n#error "No longint"…
108 …if not self.checkCompile('#include "superlu_ddefs.h"','#if defined(_LONGINT)\n#error "longint is d…
112 …ies.check,[self.lib, ['psgssvx']],{'otherLibs' : self.dlib}) and self.checkCompile('#include "supe…
H A Dpthread.py22 if self.checkCompile('#include <pthread.h>', 'pthread_barrier_t *a;\n(void)a'):
H A Dhypre.py247 if not self.checkCompile('#include "HYPRE_config.h"',code):
263 if not self.checkCompile('#include "HYPRE_config.h"',code):
266 if not self.checkCompile('#include "HYPRE_config.h"',code):
269 if not self.checkCompile('#include "HYPRE_config.h"',code):
H A DMmg.py38 same_int64 = self.checkCompile(int64_t)
H A DTetGen.py106 if not self.checkCompile(include,body):
108 if self.checkCompile(include,body):
H A Dcgns.py38 …if not self.checkCompile('#include "cgnslib.h"', '#if (CG_SIZEOF_SIZE < '+str(self.getDefaultIndex…
H A DMPI.py479 if self.checkCompile('#include <mpi.h>\n MPI_Count i = 0;\n'): # introduced in MPI-3.0
638 if self.checkCompile(includes, body):
752 if self.checkCompile(mpich_test):
762 if self.checkCompile(mpich_test):
788 if self.checkCompile(necmpi_test):
795 if self.checkCompile(openmpi_test):
817 if self.checkCompile(msmpi_test):
1005 if self.checkCompile('#include <mpi.h>', 'int combiner = %s;(void)combiner' % (combiner,)):
H A DMETIS.py54 …if not self.checkCompile('#include "metis.h"', '#if (IDXTYPEWIDTH != '+ str(self.getDefaultIndexSi…
H A Dboost.py43 if not self.checkCompile('#include <bzlib.h>', ''):
H A DCUDA.py273 valid = self.checkCompile(include)
419 valid = self.checkCompile()
/petsc/config/PETSc/
H A DConfigure.py270 if self.checkCompile('#include <sys/socket.h>','setsockopt(0,SOL_SOCKET,SO_REUSEADDR,0,0)'):
701 if self.checkCompile(test_src, ''):
723 if self.checkCompile('#define TEST _Pragma("GCC warning \"Testing _Pragma\"") value'):
736 if self.checkCompile(code):
759 if self.checkCompile('',code) and self.checkLink('',code):
775 …return self.checkCompile(inc, ('#define STATIC_ASSERT(cond) char negative_length_if_false[2*(!!(co…
796 if self.checkCompile(
818 if self.checkCompile('#include <dlfcn.h>\n void *ptr = RTLD_DEFAULT;'):
886 if not self.checkCompile('#include <sys/types.h>\n','uid_t u;\n(void)u'):
896 if self.checkCompile('#include <windows.h>\n','LARGE_INTEGER a;\nDWORD b=a.u.HighPart;\n'):
[all …]
/petsc/config/PETSc/options/
H A DsharedLibraries.py114 …if self.checkCompile('%s#include<stdlib.h>\n#include <dlfcn.h>\n' % ftm, 'Dl_info info;\nif (dladd…
H A DscalarTypes.py85 if self.checkCompile('','__attribute__((optimize ("no-finite-math-only"))) int foo(void);'):
/petsc/doc/developers/
H A Dbuildsystem.md346 outputCompile(), checkCompile()

12