I'm trying to count the GPU and CPU FLOPs and I've got the source from here
I renamed it to cudaflops.cu and compiled it with this makefile
################################################################################
#
# Build script for project
#
################################################################################
# Add source files here
EXECUTABLE := benchmark
# Cuda source files (compiled with cudacc)
CUFILES := cudaflops.cu
# C/C++ source files (compiled with gcc / c++)
CCFILES :=
################################################################################
# Rules and targets
include ../../common/common.mk
#########################################
Tt works fine and gives result 367 GFlOPs
But now, I don't know to test this source in CPU, I read this which say that the source could run on CPU.
So how the modified makefile to do it??