Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow cmake to build as both a standalone project as well as a subproject (ie add_subdirectory(mkl-dnn)) #44

Merged
merged 3 commits into from
Apr 13, 2017

Conversation

cjolivier01
Copy link
Contributor

No description provided.

Copy link

@emfomenk emfomenk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @cjolivier01,

Thank you for the contribution!
Seems to be very reasonable changes.

Few minor things need to be changed before merging.

# TODO: enable me!
#file(GLOB API_TEST_CASES_SRC api_tests/*.cpp)
#file(GLOB PRIM_TEST_CASES_SRC test_*.cpp)
file(GLOB PRIM_TEST_CASES_SRC RELATIVE ${CMAKE_SOURCE_DIR}/tests/gtests
file(GLOB PRIM_TEST_CASES_SRC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/../gtests
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is incompatible with cmake 2.8.11.

For some reasons PRIM_TEST_CASES_SRC = ../../test_sum.cpp;../../test_reorder.cpp;... rather than PRIM_TEST_CASES_SRC = test_sum.cpp;test_reorder.cpp;....

Is there any particular reason why you do this trick: ../gtests, even though you are already in this directory?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me check. I found the multiple gtest directories a little confusing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, removed

${CMAKE_SOURCE_DIR}/src
${CMAKE_SOURCE_DIR}/src/common
${CMAKE_SOURCE_DIR}/src/cpu/xbyak
${CMAKE_CURRENT_SOURCE_DIR}/..
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any specific reason for adding this line?
${CMAKE_CURRENT_SOURCE_DIR}/..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

${CMAKE_SOURCE_DIR}/tests/gtests/gtest)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/..
${CMAKE_CURRENT_SOURCE_DIR}/gtest)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same as here: what this line stands for?
${CMAKE_CURRENT_SOURCE_DIR}/gtest

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

@cjolivier01
Copy link
Contributor Author

Does that cover them all?

@emfomenk emfomenk merged commit f0825ff into oneapi-src:master Apr 13, 2017
@emfomenk
Copy link

@cjolivier01,

Thank you so much for the contribution!

Ideally I should've asked you to unite 1st and 3rd commits together, and then do merge-via-rebase, cause we try to keep history linear. But that would take yet another day. So I decided to do squashing-merge.
Hope you don't mind.

Thanks once more! Looking forward for new PRs :)

m-ymzk pushed a commit to m-ymzk/oneDNN that referenced this pull request Nov 29, 2020
Fixup: convolution result (BWD_D) may be incorrect when stride_w>1, ic>16, and iw<17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants