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

Ported RecommendationSystemTest to EE2. #3276

Closed
wants to merge 1 commit into from

Conversation

gcatron
Copy link
Contributor

@gcatron gcatron commented Jul 22, 2019

Summary: This PR ports the RecommendationSystemTest to the new EE2. Additionally this adds a new feature to EE2, the ability to set the memory of the device. This allows programmatically setting the EE device memory to support graphs larger than the default.

Documentation: NA

Work on #3239

Test Plan: verify everything builds, and RecomendationSystemTest runs and passes.

@gcatron gcatron requested a review from jfix71 July 22, 2019 21:58
Copy link
Contributor

@beicy beicy left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@gcatron has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

tests/unittests/RecommendationSystemTest.cpp Outdated Show resolved Hide resolved
@@ -745,40 +761,46 @@ class RecommendationSystemTest : public BackendTest {
/// Create partitions to run and compare results.
void runPartitionedGraph(size_t numDevices, size_t memSize,
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we still need this? Can we just add it to the EE and let it do its thing?

For context this was added originally because we didn't have a nice wrapper of the runtime to test partitioning with, and now we do.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We still do, this function calls partitioner directly for finer grained testing. That's not something the EE exposes. An alternative would be to go straight to HostManager and bypass EE but that would require its own supporting code.

Copy link

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@gcatron has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@jfix71 jfix71 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for prioritizing this!

tests/unittests/RecommendationSystemTest.cpp Outdated Show resolved Hide resolved
@@ -45,6 +45,9 @@ void ExecutionEngine2::setBackendName(llvm::StringRef backend) {
if (backend != "") {
Copy link
Contributor

Choose a reason for hiding this comment

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

what's the use case when backend passed here is actually an empty string?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You ask a good question. It's currently called in ~ExecutionEngine2, but the module without a HM doesn't make much sense. A follow up Diff to refactor and simplify seems like a good idea.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made #3280 to track it. I'll refactor when I have fewer branches to rebase :)

Copy link

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@gcatron has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@gcatron has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link

@gcatron merged this pull request in b9dc8d9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants