theano/gof/cmodule.py
def try_march_flag(flags):
    """
        Try to compile and run a simple C snippet using current flags.
        Return: compilation success (True/False), execution success (True/False)
    """
    test_code = textwrap.dedent("""\
            #include <cmath>
            using namespace std;
            int main(int argc, char** argv)
            {
                float Nx = -1.3787706641;
                float Sx = 25.0;
                double r = Nx + sqrt(Sx);
                if (abs(r - 3.621229) > 0.01)
                {
                    return -1;
                }
                return 0;
            }
            """)

    cflags = flags + ['-L' + d for d in theano.gof.cmodule.std_lib_dirs()]
    compilation_result, execution_result = GCC_compiler.try_compile_tmp(
        test_code, tmp_prefix='try_march_',
        flags=cflags, try_run=True)
    return compilation_result, execution_result

        Try to compile and run a simple C snippet using current flags.
        Return: compilation success (True/False), execution success (True/False)
    
Try to compile and run a simple C snippet using current flags.
Return: compilation success (True/False), execution success (True/False)
Try to compile and run a simple C snippet using current flags . Return : compilation success ( True / False ) execution success ( True / False )
def try_march_flag(flags):
    test_code = textwrap.dedent("""\
            #include <cmath>
            using namespace std;
            int main(int argc, char** argv)
            {
                float Nx = -1.3787706641;
                float Sx = 25.0;
                double r = Nx + sqrt(Sx);
                if (abs(r - 3.621229) > 0.01)
                {
                    return -1;
                }
                return 0;
            }
            """)
    cflags = flags + ['-L' + d for d in theano.gof.cmodule.std_lib_dirs()]
    compilation_result, execution_result = GCC_compiler.try_compile_tmp(
        test_code, tmp_prefix='try_march_',
        flags=cflags, try_run=True)
    return compilation_result, execution_result
def try_march_flag ( flags ) : test_code = textwrap . dedent ( """\
            #include <cmath>
            using namespace std;
            int main(int argc, char** argv)
            {
                float Nx = -1.3787706641;
                float Sx = 25.0;
                double r = Nx + sqrt(Sx);
                if (abs(r - 3.621229) > 0.01)
                {
                    return -1;
                }
                return 0;
            }
            """ ) cflags = flags + [ '-L' + d for d in theano . gof . cmodule . std_lib_dirs ( ) ] compilation_result , execution_result = GCC_compiler . try_compile_tmp ( test_code , tmp_prefix = 'try_march_' , flags = cflags , try_run = True ) return compilation_result , execution_result
Try to compile and run a simple C snippet using current flags.
Try to compile and run a simple C snippet using current flags .
"""
        Try to compile and run a simple C snippet using current flags.
        Return: compilation success (True/False), execution success (True/False)
    """
flags