Skip to content

[SYCLomatic] Fix the --codepin-report when call the python command on Windows platform.#2246

Merged
zhimingwang36 merged 11 commits intooneapi-src:SYCLomaticfrom
ShengchenJ:fix_cr_814
Sep 2, 2024
Merged

[SYCLomatic] Fix the --codepin-report when call the python command on Windows platform.#2246
zhimingwang36 merged 11 commits intooneapi-src:SYCLomaticfrom
ShengchenJ:fix_cr_814

Conversation

@ShengchenJ
Copy link
Copy Markdown
Contributor

… Windows platform.

… Windows platform.

Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>
@ShengchenJ ShengchenJ requested a review from a team as a code owner August 14, 2024 07:20
@ShengchenJ ShengchenJ changed the title [SYCLomatic] Fix the --codepin-report when call the python command on… [SYCLomatic] Fix the --codepin-report when call the python command on Windows platform. Aug 14, 2024
Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>
Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>
Comment thread clang/lib/DPCT/DPCT.cpp Outdated
Comment thread clang/lib/DPCT/DPCT.cpp Outdated
Comment thread clang/lib/DPCT/DPCT.cpp Outdated
Comment thread clang/lib/DPCT/DPCT.cpp Outdated

std::string
GetFirstAvailableTool(std::unordered_set<std::string> &ToolCandidates) {
const char *EnvPath = std::getenv("PATH");
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.

Try using std::string::find to extract path and then check available one by one.

Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>
Copy link
Copy Markdown
Contributor

@zhimingwang36 zhimingwang36 left a comment

Choose a reason for hiding this comment

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

lgtm

@zhimingwang36 zhimingwang36 merged commit 6559ded into oneapi-src:SYCLomatic Sep 2, 2024
@ShengchenJ ShengchenJ deleted the fix_cr_814 branch September 3, 2024 01:49
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.

5 participants