Skip to content
Snippets Groups Projects
Select Git revision
  • 8d6fe913ec1de2cb1b0cae6d6aa3ce73b208476c
  • master default protected
  • CLFFT_NO_MAD_ENABLE
  • BRP_build_fixes
  • override_cl_compile_options
  • improve_Makefile
  • HSA
  • clmathfft
  • longer_dft_support
  • current_brp_apps
  • current_fgrp_apps
11 results

fft_base_kernels.h

Blame
    • Heinz-Bernd Eggenstein's avatar
      20314512
      Bug #1608: clFFT use of native_sin , native_cos can cause validation problems · 20314512
      Heinz-Bernd Eggenstein authored
      experimental: -added alternative method for twiddle factor calc, using a smaller LUT (256 * float2 )
                     via Taylor series to 3rd order, seems to be almost as accurate as method with 2 bigger LUTs, but faster.
                    -improved method w/ 2 bigger LUTs to use LUTs of float2
                    -improved method using slow sin/cos functions (now uses sincos combined function), still slow
                    - preparaed plan struct to have method switchable at plan creation time.
      
                    TODO: load smaller LUT for Taylor series approx into shared mem.
      20314512
      History
      Bug #1608: clFFT use of native_sin , native_cos can cause validation problems
      Heinz-Bernd Eggenstein authored
      experimental: -added alternative method for twiddle factor calc, using a smaller LUT (256 * float2 )
                     via Taylor series to 3rd order, seems to be almost as accurate as method with 2 bigger LUTs, but faster.
                    -improved method w/ 2 bigger LUTs to use LUTs of float2
                    -improved method using slow sin/cos functions (now uses sincos combined function), still slow
                    - preparaed plan struct to have method switchable at plan creation time.
      
                    TODO: load smaller LUT for Taylor series approx into shared mem.
    generate_svn_version.sh 1.98 KiB
    #!/usr/bin/env bash
    
    HEADER="svn_version.h"
    TMPFILE="$HEADER.tmp"
    
    echo "#ifndef SVN_VERSION_H" > $TMPFILE
    echo "#define SVN_VERSION_H" >> $TMPFILE
    echo "" >> $TMPFILE
    
    if [ -d .git/svn ]; then
        CMD="git svn info"
    elif [ -d .git ]; then
        GIT_LOG=`git log -n1 --pretty="format:%H"`
        HOST=`hostname`
        BRANCH=`git branch | sed -n 's/^\* *//p'`
        remote=`git config --get branch.$BRANCH.remote`
        URL=`git config --get remote.$remote.url`
        DATE=`git log -n1 --pretty="format:%ct"`
    elif [ -d .svn ]; then
        CMD="svn info"
    else
        CMD=""
    fi
    
    if [ "x$GIT_LOG" != "x" ]; then
        echo "#define SVN_VERSION \"$GIT_LOG [$URL] ($HOST:$PWD [$BRANCH])\"" >> $TMPFILE
        echo "$GIT_LOG" | sed 's/^\(........\).*/#define GIT_REVISION 0x\1/' >> $TMPFILE
        echo "#define GIT_DATE $DATE" >> $TMPFILE
        test "x$URL" = "x" ||
            echo "$URL" |
                sed 's/.git$//;s%.*://%%;s/[^/]*@//;s/[^a-zA-Z0-9]/_/g;s/__*/_/g;
                     y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/;
                     s/^/#define REPOSITORY_/;s/$/ 1/' >> $TMPFILE
    elif [ "x$CMD" != "x" ]; then
        LANG=C 
        URL=`$CMD | awk '
                    /^URL/ { url = $2; };
                    /^Rev/ { rev = $2; };
                    END { print "#define SVN_VERSION \"Repository: " url \
                                " Revision: " rev "\"" >> "'"$TMPFILE"'";
                          print "#define SVN_REPOSITORY \"" url "\"" >> "'"$TMPFILE"'";
                          print "#define SVN_REVISION " rev >> "'"$TMPFILE"'";
                          print url };'`
        echo $URL | 
            sed 's%.*://%%;s/[^/]*@//;s/[^a-zA-Z0-9]/_/g;s/__*/_/g;
                 y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/;
                 s/^/#define REPOSITORY_/;s/$/ 1/' >> $TMPFILE
    else
        echo "#include \"version.h\"" >> $TMPFILE
        echo "#define SVN_VERSION BOINC_VERSION_STRING" >> $TMPFILE
    fi
    
    echo "" >> $TMPFILE
    echo "#endif" >> $TMPFILE
    
    if cmp "$HEADER" "$TMPFILE" >/dev/null 2>&1; then
    	rm -f "$TMPFILE"
    else
    	mv "$TMPFILE" "$HEADER"
    fi