Skip to content

trying to build the examples fails #2

@benvanwerkhoven

Description

@benvanwerkhoven

I tried the following:

cd examples
mkdir build
cd build
cmake ..
make

And got the following error:

[ 25%] Building CUDA object vector_add/CMakeFiles/kernel_float_vecadd.dir/main.cu.o
In file included from /home/ben/documents/kernel_tuner/kernel_float/examples/vector_add/main.cu:6:
/home/ben/documents/kernel_tuner/kernel_float/single_include/kernel_float.h:75:44: error: missing binary operator before token "("
   75 | #if defined(__has_builtin) && __has_builtin(__builtin_assume_aligned) && 0
      |                                            ^
make[2]: *** [vector_add/CMakeFiles/kernel_float_vecadd.dir/build.make:77: vector_add/CMakeFiles/kernel_float_vecadd.dir/main.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:116: vector_add/CMakeFiles/kernel_float_vecadd.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

In my first attempt at the above the compiler complained that it could not find the kernel_float.h header. So I've added that to make CPATH and removed the build directory and restarted all the steps outlined above to finally get this error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions