Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[SYCL][E2E][Bindless] Fix dx12 library linking issue on Windows #15427

Open
wants to merge 1 commit into
base: sycl
Choose a base branch
from

Conversation

jiezzhang
Copy link
Contributor

No description provided.

Copy link
Contributor

@ProGTX ProGTX left a comment

Choose a reason for hiding this comment

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

I tried this change locally, and it fails to link, whereas the previous code works for me. Here's the failure:

# .---command stderr------------
# | clang++: error: no such file or directory: 'd3d12.lib'
# | clang++: error: no such file or directory: 'dxgi.lib'
# | clang++: error: no such file or directory: 'dxguid.lib'
# `-----------------------------
# error: command failed with exit status: 1

@wenju-he
Copy link
Contributor

I'm seeing the same error as in above comment.
Using clang-cl can make the compilation succeed:
clang-cl -fsycl read_write_unsampled.cpp -w -fsycl-targets=nvptx64-nvidia-cuda d3d12.lib dxgi.lib dxguid.lib /EHcs /link /LIBPATH:"D:\iusers\wenjuhe\llvm\build\lib"

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.

3 participants