lewes6369 / TensorRT-Yolov3

TensorRT for Yolov3
MIT License
489 stars 165 forks source link

Can you explain what does the code mean for ? #85

Closed Stephenfang51 closed 4 years ago

Stephenfang51 commented 4 years ago

As the following list(APPEND CUDA_NVCC_FLAGS "-D_FORCE_INLINES -Xcompiler -fPIC")

I don't understand "-D_FORCE_INLINES -Xcompiler -fPIC"

lewes6369 commented 4 years ago

"-D_FORCE_INLINES " - ask compiler for forcing inline funcs; "-Xcompiler" - is just to tell nvcc the non-nvcc option behind it, in the cmd is "-fPIC"; "-fPIC" - loading shared library with Position-Independent Code;

Stephenfang51 commented 4 years ago

@lewes6369 Thanks so much