Skip to content

Added function to link libraries over Windows UNC network paths#22172

Open
travisle2 wants to merge 2 commits into
intel:syclfrom
travisle2:Windows_UNC_Network
Open

Added function to link libraries over Windows UNC network paths#22172
travisle2 wants to merge 2 commits into
intel:syclfrom
travisle2:Windows_UNC_Network

Conversation

@travisle2
Copy link
Copy Markdown
Contributor

This pull request enables the functionality for libraries to be linked from Windows UNC Network Paths. This is only applied to the OpenCL Library at the moment.

@travisle2 travisle2 requested a review from a team as a code owner May 29, 2026 19:21
@travisle2 travisle2 requested a review from uditagarwal97 May 29, 2026 19:21
Copy link
Copy Markdown

@omirochn omirochn left a comment

Choose a reason for hiding this comment

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

Would not the suggestions be clearer?

Comment thread sycl/test-e2e/lit.cfg.py Outdated

# Check for OpenCL ICD
if config.opencl_libs_dir:
tmp_opencl_libs_dir = config.opencl_libs_dir
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
tmp_opencl_libs_dir = config.opencl_libs_dir
opencl_lib = config.opencl_libs_dir + "/OpenCL.lib"

Comment thread sycl/test-e2e/lit.cfg.py Outdated
Comment on lines +573 to +581
if is_windows_unc_network_path(tmp_opencl_libs_dir):
tmp_opencl_libs_dir = quote_path(normalize_windows_network_path(tmp_opencl_libs_dir) + "\\\\OpenCL.lib")
config.substitutions.append(
("%opencl_lib", " " + tmp_opencl_libs_dir)
)
else:
config.substitutions.append(
("%opencl_lib", " " + config.opencl_libs_dir + "/OpenCL.lib")
)
Copy link
Copy Markdown

@omirochn omirochn May 29, 2026

Choose a reason for hiding this comment

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

Suggested change
if is_windows_unc_network_path(tmp_opencl_libs_dir):
tmp_opencl_libs_dir = quote_path(normalize_windows_network_path(tmp_opencl_libs_dir) + "\\\\OpenCL.lib")
config.substitutions.append(
("%opencl_lib", " " + tmp_opencl_libs_dir)
)
else:
config.substitutions.append(
("%opencl_lib", " " + config.opencl_libs_dir + "/OpenCL.lib")
)
if is_windows_unc_network_path(opencl_lib):
opencl_lib = normalize_windows_network_path(opencl_lib)
config.substitutions.append(
("%opencl_lib", " " + quote_path(opencl_lib)
)

@travisle2
Copy link
Copy Markdown
Contributor Author

Implemented suggestions.

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.

2 participants