- C code snippets of optimization experiments
$ git clone git@github.com:serihiro/optimization_experiments.git
$ cd optimization_experiments/dgemm
$ make execute_all-
dgemm
-
dgemv
-
gemm_cache_optimization
-
mandelbrot_simd
-
image_processing_simd
-
distance_computation_simd
-
kdtree_nearest_neighbor
- すべての実験ディレクトリの
Makefileで、GCC最適化オプションはデフォルトで-O3です。 - 環境変数
OPT_LEVELで上書きできます(例:-O0,-O2,-Ofast)。
$ make -C dgemm clean execute_all OPT_LEVEL=-O0
$ make -C mandelbrot_simd clean run OPT_LEVEL=-O2
$ make -C kdtree_nearest_neighbor clean run OPT_LEVEL=-Ofast