Skip to content

Instantly share code, notes, and snippets.

@rambo
Created November 23, 2016 12:54
Show Gist options
  • Save rambo/ff7b90535e5dcd5abfa9f2925cce864e to your computer and use it in GitHub Desktop.
Save rambo/ff7b90535e5dcd5abfa9f2925cce864e to your computer and use it in GitHub Desktop.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1e61faf..062914d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -166,7 +166,7 @@ if(VSXU_DEBUG)
add_definitions(
-g
-Wall
- -mtune=nocona
+ -march=armv8-a
-Wtype-limits
-fpermissive
-Wuninitialized
@@ -178,7 +178,7 @@ else(VSXU_DEBUG)
if (OPTIMIZATION_FLAGS EQUAL 1)
add_definitions(
-DVSX_OPTIMIZATIONS=1
- -mtune=nocona
+ -march=armv8-a
-lrt
-lm
-O3
@@ -291,7 +291,7 @@ else(VSXU_DEBUG)
-ftree-vectorize
-fipa-cp-clone
#general
- -mtune=nocona
+ -march=armv8-a
-fmessage-length=0
-fpermissive
-ffast-math
@@ -364,7 +364,7 @@ else(VSXU_DEBUG)
-ftree-vectorize
-fipa-cp-clone
#general
- -mtune=nocona
+ -march=armv8-a
-fmessage-length=0
-fpermissive
-ffast-math
@@ -372,7 +372,7 @@ else(VSXU_DEBUG)
else()
add_definitions(
-O3
- -mtune=nocona
+ -march=armv8-a
-fmessage-length=0
-fpermissive
-finline-functions
diff --git a/profiler/include/vsx_profiler.h b/profiler/include/vsx_profiler.h
index a4a87cf..0e0d070 100644
--- a/profiler/include/vsx_profiler.h
+++ b/profiler/include/vsx_profiler.h
@@ -73,6 +73,11 @@ inline uint64_t vsx_profiler_rdtsc()
__asm__ volatile ("rdtsc" : "=a" (a), "=d" (d));
return (d<<32) | a;
}
+#else
+inline uint64_t vsx_profiler_rdtsc()
+{
+ return 0;
+}
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment