Converting ISPC compilation to clang format.

39 views
Skip to first unread message

mike lojkovic

unread,
May 3, 2021, 12:09:25 PM5/3/21
to Intel SPMD Program Compiler Users
I have some code I'm trying to translate the compiler arguments to something compatible with clang. I'm trying to use ccache, and the ispc compiler options are not recognized by it.

Dmitry Babokin

unread,
May 3, 2021, 1:24:20 PM5/3/21
to ispc-...@googlegroups.com
ISPC switches are definitely not compatible with clang switches. Could you point me to the ccache documentation stating the requirements to compiler switches format?

I think it would be easier to add ISPC support to ccache directly, but not hacking the issue around making switches look like clang switches.

PS it's better to have questions posted to github discussions at https://github.com/ispc/ispc/discussions so more people can see it and participate.

On Mon, May 3, 2021 at 9:09 AM mike lojkovic <mikelo...@gmail.com> wrote:
I have some code I'm trying to translate the compiler arguments to something compatible with clang. I'm trying to use ccache, and the ispc compiler options are not recognized by it.

--
You received this message because you are subscribed to the Google Groups "Intel SPMD Program Compiler Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ispc-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ispc-users/a2826a9d-ec7e-4780-b64a-e0b4f09c878an%40googlegroups.com.

mike lojkovic

unread,
May 7, 2021, 9:24:42 AM5/7/21
to Intel SPMD Program Compiler Users
ccache can compile ISPC. It just doesn't cache it very well. I misread the ISPC documentation, as clang supporting ISPC too. How ccache seems to work now is it just passes the ispc calls directly to the compiler. I don't think they cache it very well, if at all, considering it has B level support. If they had it I think it would greatly benefit Unreal on Linux.

https://ccache.dev/platform-compiler-language-support.html
Reply all
Reply to author
Forward
0 new messages