Closed nathanin closed 5 years ago
Hi,
Thanks for taking the time to compile and test the code. I have not come across this issue, however I do see a ton of warnings when I compile for CUDA which hints towards something not being done 100% correctly.
Since you can reproduce the error I have the following suggestions, if you want to help :). In any way thank you very much for the interest and the time.
target_compile_features(paches PUBLIC cxx_std_11)
instead of set(CMAKE_CXX_STANDARD 11)
. Could you try keeping both?In any way if you just want to use the library you can disable cuda for compiling the extension and the wall clock time cost will not be that much. Maybe ~20%. Every convolution etc will still be happening on the GPU just the patch extraction will be happening on the CPU which is not that slow.
I will also try to reproduce the error and will post here if I manage.
Cheers, Angelos
Hi, sorry to have just gotten back to this.
I did as you suggested and included both set(...)
and target_compile_features(..)
. With the target_compile_features
I got errors about the first argument paches
, I also changed it to patches
, but the error was the same: the target is not built by the project? This is out of my depth, so I just ended up commenting the if(CUDA_FOUND)
block and compiled with the patch extractor CPU only.
Thanks for your help!
Hi,
I am closing the issue because I can't reproduce it. Feel free to reopen or open a new one if you have problems.
Cheers, Angelos
I'm building your ats repository inside of a Docker container based on the latest tensorflow gpu image with this Dockerfile:
In order to build, I've set the
"default-runtime":"nvidia"
. Some other version info:An error is encountered at cmake:
I am confused because I see in
ats/ops/extract_patches/CMakeLists.txt
youset(CMAKE_CXX_STANDARD 11)
, but the error is related to "C++ versions less than C++11 are not supported."? I'm not well versed in c++, is this something you've run into previously? How can I move forward?CPU version compiles and tests successfully.