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][LIBCLC] Allow custom tools location when building libclc #12034

Merged
merged 2 commits into from
Dec 14, 2023

Conversation

jchlanda
Copy link
Contributor

Use LIBCLC_CUSTOM_LLVM_TOOLS_BINARY_DIR to specify the location of custom toolchain to be used for creation of libclc. This helps with debug build times:

  • debug build of sycl-toolchain with libclc built with debug tools:
$ for f in $(ls lib/clc/*.bc); touch $f; time ninja sycl-toolchain
[0/2] Re-checking globbed directories...                                              
[6/6] Generating ../../lib/clc/remangled-l64-signed_char.libspirv-amdgcn-amd-amdhsa.bc
ninja sycl-toolchain  682.55s user 1.33s system 112% cpu 10:07.81 total               
  • debug build of sycl-toolchain with libclc built with release tools:
$ for f in $(ls lib/clc/*.bc); touch $f; time ninja sycl-toolchain 
[0/2] Re-checking globbed directories...                                              
[6/6] Generating ../../lib/clc/remangled-l64-signed_char.libspirv-amdgcn-amd-amdhsa.bc
ninja sycl-toolchain  158.51s user 1.15s system 189% cpu 1:24.31 total                

Fixes: #6925

Copy link
Contributor

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

Overall LGTM! Just a handful small nits.

libclc/CMakeLists.txt Outdated Show resolved Hide resolved
libclc/CMakeLists.txt Outdated Show resolved Hide resolved
Copy link
Contributor

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

LGTM!

@jchlanda
Copy link
Contributor Author

jchlanda commented Dec 4, 2023

Failures seem to be a blip in CI, will trigger again.

@jchlanda
Copy link
Contributor Author

jchlanda commented Dec 6, 2023

Are we aware of any CI issues now, I see CUDA E2E failing: https://github.com/intel/llvm/actions/runs/7089054304/job/19292940897#step:2:119

@steffenlarsen
Copy link
Contributor

We are aware of this failure in the AWS CUDA container. It first appeared around last Friday.

@againull againull merged commit 7ed894a into intel:sycl Dec 14, 2023
13 checks passed
jsji pushed a commit that referenced this pull request Dec 21, 2023
Use `LIBCLC_CUSTOM_LLVM_TOOLS_BINARY_DIR` to specify the location of
custom toolchain to be used for creation of libclc. This helps with
debug build times:
  
* debug build of sycl-toolchain with libclc built with debug tools:
```sh                                                                                    
$ for f in $(ls lib/clc/*.bc); touch $f; time ninja sycl-toolchain
[0/2] Re-checking globbed directories...                                              
[6/6] Generating ../../lib/clc/remangled-l64-signed_char.libspirv-amdgcn-amd-amdhsa.bc
ninja sycl-toolchain  682.55s user 1.33s system 112% cpu 10:07.81 total               
```

* debug build of sycl-toolchain with libclc built with release tools:
```sh
$ for f in $(ls lib/clc/*.bc); touch $f; time ninja sycl-toolchain 
[0/2] Re-checking globbed directories...                                              
[6/6] Generating ../../lib/clc/remangled-l64-signed_char.libspirv-amdgcn-amd-amdhsa.bc
ninja sycl-toolchain  158.51s user 1.15s system 189% cpu 1:24.31 total                
```

Fixes: #6925
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.

libclc build in Debug mode is very slow
3 participants