Skip to content

Improve build scripts - #90

Closed
PokhodenkoSA wants to merge 12 commits into
IntelPython:masterfrom
PokhodenkoSA:fix/cmake
Closed

PokhodenkoSA wants to merge 12 commits into
IntelPython:masterfrom
PokhodenkoSA:fix/cmake

Conversation

@PokhodenkoSA

@PokhodenkoSA PokhodenkoSA commented Oct 3, 2020 •

Copy link
Copy Markdown
Contributor

Fixes #98 but it would be better to move it to separate PR.

Comment thread backends/CMakeLists.txt
# Check if the locations of Numpy and Python headers were provided
check_for_numpy_inc()

find_package(Python REQUIRED COMPONENTS Development NumPy)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do these macros search in the conda prefix?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes.

test_sycl_program_interface
test_sycl_queue_interface
test_sycl_queue_manager
find_package(GTest REQUIRED)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same question. I was not sure if the macro is smart enough to look under conda prefix.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I have tested on Linux. It works fine.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

On my system I have gtest installed in my conda environment and find_package fails to locate Gtest. What do I need to do to fix? I can install gtest through apt, but that is not what we want right?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ok. So to get it to work, I need cmake to come from conda as well. So it works. Nice!

Comment thread conda-recipe/meta.yaml Resolved
set(PYDPPL_BACKEND_TEST_CASES
test_sycl_kernel_interface
test_sycl_platform_interface
# test_sycl_program_interface

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Note: commented.

@diptorupd

Copy link
Copy Markdown
Contributor

Closing the PR as most of it is now implemented and the changes here are bit rotten beyond repair.

@diptorupd diptorupd closed this Nov 10, 2021
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.

Run C++ tests in conda recipe

2 participants