ehw-fit / tf-approximate

Approximate layers - TensorFlow extension
MIT License
26 stars 10 forks source link

Where is the libApproxGPUOpsTF.so by building from source? #4

Closed johnzhou1996 closed 4 years ago

johnzhou1996 commented 4 years ago

Hi, I run the script as follow: $mkdir build $cd build $cmake -DTFAPPROX_ALLOW_GPU_CONV=OFF .. $make and it succeeds finally, just with some warmings(when $make). ...... [100%] Linking CXX shared library libApproxGPUOpsTF.dylib [100%] Built target ApproxGPUOpsTF But I could not find where libApproxGPUOpsTF.so is? The folder ‘build’ contains CMakeCache.txt ,Makefile , containers ,src , CMakeFiles , cmake_install.cmake, libApproxGPUOpsTF.dylib.

johnzhou1996 commented 4 years ago

Hi, I run the script as follow: $mkdir build $cd build $cmake -DTFAPPROX_ALLOW_GPU_CONV=OFF .. $make and it succeeds finally, just with some warmings(when $make). ...... [100%] Linking CXX shared library libApproxGPUOpsTF.dylib [100%] Built target ApproxGPUOpsTF But I could not find where libApproxGPUOpsTF.so is? The folder ‘build’ contains CMakeCache.txt ,Makefile , containers ,src , CMakeFiles , cmake_install.cmake, libApproxGPUOpsTF.dylib.

johnzhou1996 commented 4 years ago

if meeting the problem, just modify the 'libApproxGPUOpsTF.so' to 'libApproxGPUOpsTF.dylib' where needing. In the fake_approx_convolutional.py, approx_op_module = tf.load_op_library('libApproxGPUOpsTF.dylib').