Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Cost model integration #423

Merged
merged 2 commits into from
May 10, 2023
Merged

Conversation

bagrorg
Copy link
Contributor

@bagrorg bagrorg commented Apr 21, 2023

This PR introduces the use of the cost model during query execution

@bagrorg bagrorg marked this pull request as draft April 21, 2023 09:28
@bagrorg
Copy link
Contributor Author

bagrorg commented Apr 28, 2023

@kurapov-peter, thanks! Could you please also advice something here? I'm not sure if this is a good solution

@bagrorg bagrorg requested a review from kurapov-peter April 29, 2023 12:58
@bagrorg bagrorg marked this pull request as ready for review May 3, 2023 12:35
@bagrorg bagrorg requested a review from kurapov-peter May 3, 2023 12:35
@kurapov-peter kurapov-peter linked an issue May 3, 2023 that may be closed by this pull request
Copy link
Contributor

@kurapov-peter kurapov-peter left a comment

Choose a reason for hiding this comment

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

Looks much better now. Please remove all the unrelated comments/commented code.

@bagrorg bagrorg requested a review from kurapov-peter May 5, 2023 23:01
Copy link
Contributor

@kurapov-peter kurapov-peter left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines 2202 to 2235
if (needFallbackOnCPU(ra_exe_unit, requested_device_type))
return ExecutorDeviceType::CPU;
return requested_device_type;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if (needFallbackOnCPU(ra_exe_unit, requested_device_type))
return ExecutorDeviceType::CPU;
return requested_device_type;
if (needFallbackOnCPU(ra_exe_unit, requested_device_type)) {
return ExecutorDeviceType::CPU;
}
return requested_device_type;

@bagrorg bagrorg force-pushed the cost_model_integration4 branch from 683e57e to 65aed34 Compare May 9, 2023 16:29
@kurapov-peter kurapov-peter merged commit 67bd953 into intel:main May 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cost model integration
2 participants