Skip to content

[SYCL] Enable memcpy in libdevice #3879

New issue

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

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

Already on GitHub? # to your account

Merged
merged 6 commits into from
Jul 8, 2021
Merged

Conversation

jinge90
Copy link
Contributor

@jinge90 jinge90 commented Jun 4, 2021

Signed-off-by: gejin ge.jin@intel.com

Currently, memcpy is supported in SYCL device code if "-fno-builtin" is not added. Compiler will convert it to "llvm.memcpy..." intrinsic and llvm-spirv will convert it to OpCopyMemorySized for jit.

However, if "-fno-builtin" is added, compiler will call libc function "memcpy" directly and it requires libdevice support. This PR support memcpy in libdevice, so developers can use it in SYCL device code no matter whether "-fno-builtin" is added or not.

Signed-off-by: gejin <ge.jin@intel.com>
Signed-off-by: gejin <ge.jin@intel.com>
bader
bader previously requested changes Jun 4, 2021
@jinge90
Copy link
Contributor Author

jinge90 commented Jun 4, 2021

/suumary:run

Signed-off-by: gejin <ge.jin@intel.com>
romanovvlad
romanovvlad previously approved these changes Jun 7, 2021
Copy link
Contributor

@romanovvlad romanovvlad left a comment

Choose a reason for hiding this comment

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

sycl/include and sycl/source changes LGTM

Pennycook
Pennycook previously approved these changes Jun 7, 2021
AlexeySachkov
AlexeySachkov previously approved these changes Jun 8, 2021
Copy link
Contributor

@AlexeySachkov AlexeySachkov left a comment

Choose a reason for hiding this comment

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

sycl-post-link changes LGTM

vzakhari
vzakhari previously approved these changes Jun 8, 2021
Copy link
Contributor

@vzakhari vzakhari left a comment

Choose a reason for hiding this comment

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

libdevice changes look good to me.

Signed-off-by: gejin <ge.jin@intel.com>
Copy link
Contributor

@romanovvlad romanovvlad left a comment

Choose a reason for hiding this comment

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

RT part LGTM

@bader bader changed the title [SYCL] enable memcpy in libdevice [SYCL] Enable memcpy in libdevice Jun 23, 2021
@bader bader dismissed their stale review June 23, 2021 08:55

No blocking issues from my side.

@bader bader requested a review from vzakhari June 23, 2021 08:56
@bader
Copy link
Contributor

bader commented Jun 23, 2021

@AGindinson, @mdtoguchi, ping.

@jinge90
Copy link
Contributor Author

jinge90 commented Jul 8, 2021

Hi, @bader and @romanovvlad
Could you help check if this patch can be merged now?
Thanks very much.

@romanovvlad
Copy link
Contributor

Hi, @bader and @romanovvlad
Could you help check if this patch can be merged now?
Thanks very much.

No, it cannot be.
@mlychkov @AGindinson Could you please review?

@bader bader merged commit 76051cc into intel:sycl Jul 8, 2021
Michoumichmich added a commit to Michoumichmich/llvm that referenced this pull request Sep 10, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants