clMathLibraries / clBLAS

a software library containing BLAS functions written in OpenCL
Apache License 2.0
838 stars 242 forks source link

make rebuilds every file even if no source files were changed #310

Open cirosantilli opened 7 years ago

cirosantilli commented 7 years ago
 git clone https://github.com/clMathLibraries/clBLAS
 cd clBLAS
 git checkout 1f3de2ae5582972f665c685b18ef0df43c1792bb
 mkdir build
 cd build
 cmake ..
 make VERBOSE=1

Now run make again without any source changes:

 make VERBOSE=1

and it recompiles everything again.

This means that rebuild times are very long after each change.

Ubuntu 16.10, make 4.1, cmake 3.5.2.

pavanky commented 7 years ago

@tingxingdong Running make a second time after building, ideally, should not recompile. The problem with clBLAS is that there are a bunch of autogenerated files that are generated everytime make is run. This results in everything recompiling again.

tingxingdong commented 7 years ago

Oh, sorry. I thought he download a new one. He only "make twice".