-
Notifications
You must be signed in to change notification settings - Fork 14
[Cython Build] Pass all compile definitions #410
[Cython Build] Pass all compile definitions #410
Conversation
19f5dc0
to
94c124b
Compare
As currently I am changing headers like |
94c124b
to
4e53440
Compare
@gshimansky Please, take a look, it shouldn't fail windows build, but I am not sure how to check. |
python/CMakeLists.txt
Outdated
get_property(CDEFS DIRECTORY PROPERTY COMPILE_DEFINITIONS) | ||
get_property(IDIRS DIRECTORY PROPERTY INCLUDE_DIRECTORIES) | ||
message(STATUS "Defintions to Cython: ${CDEFS}") | ||
message(STATUS "Include dirs to Cython: ${IDIRS}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I keep the messages or remove them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good!
@@ -165,7 +171,7 @@ class CUDABackend : public Backend { | |||
llvm::TargetMachine* nvptx_target_machine); | |||
|
|||
static std::unique_ptr<llvm::TargetMachine> initializeNVPTXBackend( | |||
const CudaMgr_Namespace::NvidiaDeviceArch arch); | |||
const CudaMgr_Namespace::NvidiaDeviceArch varch); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spurious change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, thanks for reminder)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved
python/CMakeLists.txt
Outdated
@@ -1,5 +1,10 @@ | |||
set(SETUP_PY "${CMAKE_CURRENT_BINARY_DIR}/setup.py") | |||
|
|||
get_property(CDEFS DIRECTORY PROPERTY COMPILE_DEFINITIONS) | |||
get_property(IDIRS DIRECTORY PROPERTY INCLUDE_DIRECTORIES) | |||
message(STATUS "Defintions to Cython: ${CDEFS}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove debug prints.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed.
This pr passes all compile definitions from CMake to cython build. Resolves: #297 Signed-off-by: Dmitrii Makarenko <[email protected]>
This commit applies style to setup.py.in. Signed-off-by: Dmitrii Makarenko <[email protected]>
This commits wraps library/include generation into functions. Signed-off-by: Dmitrii Makarenko <[email protected]>
This commit enables build with cuda and HAVE_CUDA definition. Also passes include dirs from cmake to setup. Signed-off-by: Dmitrii Makarenko <[email protected]>
4e53440
to
bc63efc
Compare
Note: Only libraries parameter for all |
This pr passes all compile definitions and include dirs from CMake to cython build.
Also removing dependencies to cuda from library headers.
Resolves: #297
Signed-off-by: Dmitrii Makarenko [email protected]