diff --git a/example/Performance/memBW/main.cu b/example/Performance/memBW/main.cu index c46cbb7002f5cfe547dde1c7505f0bf386077f7c..4541cbb485ef3eedad4949abd1071793ac3327c8 100644 --- a/example/Performance/memBW/main.cu +++ b/example/Performance/memBW/main.cu @@ -1,3 +1,5 @@ +#ifdef __NVCC__ + #include "Vector/map_vector.hpp" #include "util/stat/common_statistics.hpp" @@ -58,3 +60,12 @@ int main(int argc, char *argv[]) std::cout << "BW: " << nele*4*19 / t.getwct() * 1e-9 << " GB/s" << std::endl; } } + +#else + +int main(int argc, char *argv[]) +{ +} + +#endif +