Skip to content

[SYCL] Support for cross-compilation? #5

Open

Description

@kpet

A quick look at the code suggests that cross-compiling SYCL apps isn't currently possible. Is there any plan to add support? x86->ARM would be particularly interesting.

Activity

  1. bader commented on Jan 24, 2019

    @bader
    Contributor

    I think it's possible in theory even today, but it's not tested.
    What particular problems you see if you target ARM with the clang built from the sycl branch?

    Another option: you can try separate compilation as mentioned as # 2 here: https://github.com/intel/llvm/blob/sycl/sycl/doc/GetStartedWithSYCLCompiler.md#build-and-test-a-simple-sycl-program. It splits the compilation into two steps: device part + host part.
    Device part emits target agnostic SPIR-V and you can try C++11 compiler for ARM to compile host part of the application.
    You can even try to create a fat binary, but it will take much more efforts: you can find "steps" you will have to manually reproduce in the driver test - https://github.com/intel/llvm/blob/sycl/clang/test/Driver/sycl-offload.c.

  2. added
    enhancementNew feature or request
    help wantedWe don't have ability to look into this at the moment, but contributions are welcome
    on Feb 19, 2019
  3. added a commit that references this issue on Mar 7, 2019
  4. 174 remaining items

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedWe don't have ability to look into this at the moment, but contributions are welcome

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions