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

[UR] Bump UR version and enable dynamic linking with UMF #13343

Merged
merged 6 commits into from
Jul 26, 2024

Conversation

igchor
Copy link
Member

@igchor igchor commented Apr 10, 2024

@jsji
Copy link
Contributor

jsji commented Apr 22, 2024

@igchor Does this mean that we will be requiring ANYONE who use UR to install libhwloc on Linux and hwloc-win64-build-2.10.0 on windows? Can we somehow detect these, and don't switch to dynamic linking if these libs are not installed?

@igchor
Copy link
Member Author

igchor commented Apr 22, 2024

@igchor Does this mean that we will be requiring ANYONE who use UR to install libhwloc on Linux and hwloc-win64-build-2.10.0 on windows? Can we somehow detect these, and don't switch to dynamic linking if these libs are not installed?

Yes, that's correct (although the minimum required version is 2.3.0). The hwloc is required not because we link dynamically with UMF but because I've bumped UMF version we are using. This new UMF version has a dependency on hwloc which cannot be disabled. Will this be a problem for intel/llvm?

@jsji
Copy link
Contributor

jsji commented Apr 22, 2024

This new UMF version has a dependency on hwloc which cannot be disabled. Will this be a problem for intel/llvm?

Thanks @igchor for the clarification. Installing hwloc in CI/containers won't be a problem. But that also means sycl compilers and DPC++ will have to add a dependency to hwloc? If so, I think we have to update quite a bunch of documents to reflect that? Is that really what we want?

FYI. @stdale-intel .

@stdale-intel
Copy link
Contributor

@jsji you are correct on both ends. @uditagarwal97 updated the Windows CI machines, and Linux containers. Docs and other things are being updated to reflect this as well.

@igchor
Copy link
Member Author

igchor commented Apr 22, 2024

But that also means sycl compilers and DPC++ will have to add a dependency to hwloc?

Yes, and there's already been a discussion about how to handle this for DPC++.

If so, I think we have to update quite a bunch of documents to reflect that? Is that really what we want?

@jsji do you want me to update any docs in intel/llvm in this PR? if yes, could you let me know which ones should I update?

@jsji
Copy link
Contributor

jsji commented Apr 22, 2024

But that also means sycl compilers and DPC++ will have to add a dependency to hwloc?

Yes, and there's already been a discussion about how to handle this for DPC++.

If so, I think we have to update quite a bunch of documents to reflect that? Is that really what we want?

@jsji do you want me to update any docs in intel/llvm in this PR? if yes, could you let me know which ones should I update?

Thanks @igchor . I think @stdale-intel mentioned that "Docs and other things are being updated to reflect this as well." , not sure who is doing that, but I guess someone is already taking care of that.

@stdale-intel
Copy link
Contributor

@igchor if you can take care of the intel/llvm doc PR that would be awesome!

I'd start with editing https://github.com/intel/llvm/blob/sycl/sycl/doc/GetStartedGuide.md. But i'll see if there is other docs as well.

@igchor
Copy link
Member Author

igchor commented Apr 23, 2024

@igchor if you can take care of the intel/llvm doc PR that would be awesome!

I'd start with editing https://github.com/intel/llvm/blob/sycl/sycl/doc/GetStartedGuide.md. But i'll see if there is other docs as well.

Done. Please let me know if I should update anything else.

steffenlarsen pushed a commit that referenced this pull request Apr 24, 2024
Install hwloc which is required by UMF (a dependency of UR).

This is needed by #13343
igchor and others added 2 commits July 25, 2024 13:17
Explicitly set 'ZES_ENABLE_SYSMAN=0'. HWLOC initializes this environment
variable in its constructor, causing this test to fail, as retrieving
free memory information is expected not to work in this test.
@pbalcer
Copy link
Contributor

pbalcer commented Jul 25, 2024

@intel/llvm-gatekeepers this is ready for merge from our side. The HIP failure is unrelated and is affecting all other PRs.

@martygrant
Copy link
Contributor

@pbalcer this is waiting on approvals from intel/dpcpp-devops-reviewers, intel/dpcpp-doc-reviewers, and/or intel/llvm-reviewers-runtime

Copy link
Contributor

@sarnex sarnex left a comment

Choose a reason for hiding this comment

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

devops lgtm given stewart has approved

@kswiecicki
Copy link
Contributor

@pbalcer this is waiting on approvals from intel/dpcpp-devops-reviewers, intel/dpcpp-doc-reviewers, and/or intel/llvm-reviewers-runtime

@martygrant, since @sarnex and @uditagarwal97 have given their approval, I believe this is ready to be merged

@sarnex
Copy link
Contributor

sarnex commented Jul 25, 2024

Don't we still need dpcpp-doc-reviewers?

@kswiecicki
Copy link
Contributor

Don't we still need dpcpp-doc-reviewers?

I'm not sure, @martygrant said and/or , we can wait for intel/dpcpp-doc-reviewers if it's necessary.

@sarnex
Copy link
Contributor

sarnex commented Jul 25, 2024

The CI seems to be saying and, so @intel/dpcpp-doc-reviewers can someone please review this? Just a apt-get command change.

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.

I think we should make it clear that the hwloc prereq is a Linux-only requirement. Other than that, I think this is fine.

sycl/doc/GetStartedGuide.md Outdated Show resolved Hide resolved
Co-authored-by: Steffen Larsen <steffen.larsen@intel.com>
@igchor
Copy link
Member Author

igchor commented Jul 25, 2024

@intel/llvm-gatekeepers this is ready for merge, I belive we have all the required approvals now

@steffenlarsen steffenlarsen merged commit 33c0829 into intel:sycl Jul 26, 2024
16 checks passed
@AlexeySachkov
Copy link
Contributor

@igchor, this PR broke our post-commit, could you please take a look? https://github.com/intel/llvm/actions/runs/10106492701

FAILED: _deps/unified-memory-framework-build/src/CMakeFiles/umf.dir/provider/provider_os_memory.c.o 
ccache /opt/sycl/bin/clang -DUMF_SHARED_LIBRARY -DUMF_VERSION=0.9.0-rc1.git18.g1c34aae -DUR_ENABLE_SANITIZER -DUR_VALIDATION_LAYER_SUPPORTED_VERSION=\"0\" -DUR_VERSION=\"0\" -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Dumf_EXPORTS -I/__w/llvm/llvm/build/_deps/unified-memory-framework-build/src -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src -I/__w/llvm/llvm/build/include -I/__w/llvm/llvm/src/llvm/include -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/include -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/utils -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/base_alloc -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/critnib -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/provider -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/memspaces -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/memtargets -fPIC -fno-semantic-interposition -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-error -O3 -DNDEBUG -fPIC -fPIC -Wall -Wextra -Werror -Wpedantic -Wempty-body -Wunused-parameter -Wformat -Wformat-security -Wcast-qual -Wunused-result -MD -MT _deps/unified-memory-framework-build/src/CMakeFiles/umf.dir/provider/provider_os_memory.c.o -MF _deps/unified-memory-framework-build/src/CMakeFiles/umf.dir/provider/provider_os_memory.c.o.d -o _deps/unified-memory-framework-build/src/CMakeFiles/umf.dir/provider/provider_os_memory.c.o -c /__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/provider/provider_os_memory.c
/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/provider/provider_os_memory.c:182:5: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
  182 |     default:
      |     ^
1 error generated.
[2193/8943] Building C object _deps/unified-memory-framework-build/src/CMakeFiles/umf.dir/memtargets/memtarget_numa.c.o
FAILED: _deps/unified-memory-framework-build/src/CMakeFiles/umf.dir/memtargets/memtarget_numa.c.o 
ccache /opt/sycl/bin/clang -DUMF_SHARED_LIBRARY -DUMF_VERSION=0.9.0-rc1.git18.g1c34aae -DUR_ENABLE_SANITIZER -DUR_VALIDATION_LAYER_SUPPORTED_VERSION=\"0\" -DUR_VERSION=\"0\" -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Dumf_EXPORTS -I/__w/llvm/llvm/build/_deps/unified-memory-framework-build/src -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src -I/__w/llvm/llvm/build/include -I/__w/llvm/llvm/src/llvm/include -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/include -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/utils -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/base_alloc -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/critnib -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/provider -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/memspaces -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/memtargets -fPIC -fno-semantic-interposition -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-error -O3 -DNDEBUG -fPIC -fPIC -Wall -Wextra -Werror -Wpedantic -Wempty-body -Wunused-parameter -Wformat -Wformat-security -Wcast-qual -Wunused-result -MD -MT _deps/unified-memory-framework-build/src/CMakeFiles/umf.dir/memtargets/memtarget_numa.c.o -MF _deps/unified-memory-framework-build/src/CMakeFiles/umf.dir/memtargets/memtarget_numa.c.o.d -o _deps/unified-memory-framework-build/src/CMakeFiles/umf.dir/memtargets/memtarget_numa.c.o -c /__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/memtargets/memtarget_numa.c
/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/memtargets/memtarget_numa.c:105:9: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
  105 |         default:
      |         ^
/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/memtargets/memtarget_numa.c:211:5: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
  211 |     default:
      |     ^
/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/memtargets/memtarget_numa.c:260:5: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
  260 |     default:
      |     ^
3 errors generated.
[2194/8943] Building C object _deps/unified-memory-framework-build/src/pool/CMakeFiles/disjoint_pool.dir/__/__/__/unified-memory-framework-src/src/utils/utils_log.c.o
FAILED: _deps/unified-memory-framework-build/src/pool/CMakeFiles/disjoint_pool.dir/__/__/__/unified-memory-framework-src/src/utils/utils_log.c.o 
ccache /opt/sycl/bin/clang -DUMF_SHARED_LIBRARY -DUMF_VERSION=0.9.0-rc1.git18.g1c34aae -DUR_ENABLE_SANITIZER -DUR_VALIDATION_LAYER_SUPPORTED_VERSION=\"0\" -DUR_VERSION=\"0\" -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/__w/llvm/llvm/build/_deps/unified-memory-framework-build/src/pool -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/pool -I/__w/llvm/llvm/build/include -I/__w/llvm/llvm/src/llvm/include -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/include -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/utils -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/base_alloc -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/include/umf/pools -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/critnib -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/provider -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/memspaces -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/memtargets -fPIC -fno-semantic-interposition -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-error -O3 -DNDEBUG -fPIC -Wall -Wextra -Werror -Wpedantic -Wempty-body -Wunused-parameter -Wformat -Wformat-security -Wcast-qual -Wunused-result -MD -MT _deps/unified-memory-framework-build/src/pool/CMakeFiles/disjoint_pool.dir/__/__/__/unified-memory-framework-src/src/utils/utils_log.c.o -MF _deps/unified-memory-framework-build/src/pool/CMakeFiles/disjoint_pool.dir/__/__/__/unified-memory-framework-src/src/utils/utils_log.c.o.d -o _deps/unified-memory-framework-build/src/pool/CMakeFiles/disjoint_pool.dir/__/__/__/unified-memory-framework-src/src/utils/utils_log.c.o -c /__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/utils/utils_log.c
/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/utils/utils_log.c:62:5: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
   62 |     default:
      |     ^
1 error generated.

@AlexeySachkov
Copy link
Contributor

CI on macOS is also broken:

-- Checking for module 'hwloc>=2.3.0'
--   No package 'hwloc' found
-- Checking for module 'libhwloc' using find_library()
CMake Error at /Users/runner/work/llvm/llvm/build/_deps/unified-memory-framework-src/cmake/FindLIBHWLOC.cmake:71 (message):
  libhwloc NOT found (set CMAKE_PREFIX_PATH to point the location)
Call Stack (most recent call first):
  /Users/runner/work/llvm/llvm/build/_deps/unified-memory-framework-src/CMakeLists.txt:100 (find_package)

@steffenlarsen
Copy link
Contributor

@pbalcer, would you be able to have a look at the above?

@pbalcer
Copy link
Contributor

pbalcer commented Jul 26, 2024

@igchor, this PR broke our post-commit, could you please take a look? https://github.com/intel/llvm/actions/runs/10106492701

FAILED: _deps/unified-memory-framework-build/src/CMakeFiles/umf.dir/provider/provider_os_memory.c.o 
ccache /opt/sycl/bin/clang -DUMF_SHARED_LIBRARY -DUMF_VERSION=0.9.0-rc1.git18.g1c34aae -DUR_ENABLE_SANITIZER -DUR_VALIDATION_LAYER_SUPPORTED_VERSION=\"0\" -DUR_VERSION=\"0\" -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Dumf_EXPORTS -I/__w/llvm/llvm/build/_deps/unified-memory-framework-build/src -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src -I/__w/llvm/llvm/build/include -I/__w/llvm/llvm/src/llvm/include -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/include -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/utils -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/base_alloc -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/critnib -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/provider -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/memspaces -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/memtargets -fPIC -fno-semantic-interposition -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-error -O3 -DNDEBUG -fPIC -fPIC -Wall -Wextra -Werror -Wpedantic -Wempty-body -Wunused-parameter -Wformat -Wformat-security -Wcast-qual -Wunused-result -MD -MT _deps/unified-memory-framework-build/src/CMakeFiles/umf.dir/provider/provider_os_memory.c.o -MF _deps/unified-memory-framework-build/src/CMakeFiles/umf.dir/provider/provider_os_memory.c.o.d -o _deps/unified-memory-framework-build/src/CMakeFiles/umf.dir/provider/provider_os_memory.c.o -c /__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/provider/provider_os_memory.c
/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/provider/provider_os_memory.c:182:5: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
  182 |     default:
      |     ^
1 error generated.
[2193/8943] Building C object _deps/unified-memory-framework-build/src/CMakeFiles/umf.dir/memtargets/memtarget_numa.c.o
FAILED: _deps/unified-memory-framework-build/src/CMakeFiles/umf.dir/memtargets/memtarget_numa.c.o 
ccache /opt/sycl/bin/clang -DUMF_SHARED_LIBRARY -DUMF_VERSION=0.9.0-rc1.git18.g1c34aae -DUR_ENABLE_SANITIZER -DUR_VALIDATION_LAYER_SUPPORTED_VERSION=\"0\" -DUR_VERSION=\"0\" -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Dumf_EXPORTS -I/__w/llvm/llvm/build/_deps/unified-memory-framework-build/src -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src -I/__w/llvm/llvm/build/include -I/__w/llvm/llvm/src/llvm/include -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/include -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/utils -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/base_alloc -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/critnib -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/provider -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/memspaces -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/memtargets -fPIC -fno-semantic-interposition -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-error -O3 -DNDEBUG -fPIC -fPIC -Wall -Wextra -Werror -Wpedantic -Wempty-body -Wunused-parameter -Wformat -Wformat-security -Wcast-qual -Wunused-result -MD -MT _deps/unified-memory-framework-build/src/CMakeFiles/umf.dir/memtargets/memtarget_numa.c.o -MF _deps/unified-memory-framework-build/src/CMakeFiles/umf.dir/memtargets/memtarget_numa.c.o.d -o _deps/unified-memory-framework-build/src/CMakeFiles/umf.dir/memtargets/memtarget_numa.c.o -c /__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/memtargets/memtarget_numa.c
/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/memtargets/memtarget_numa.c:105:9: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
  105 |         default:
      |         ^
/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/memtargets/memtarget_numa.c:211:5: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
  211 |     default:
      |     ^
/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/memtargets/memtarget_numa.c:260:5: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
  260 |     default:
      |     ^
3 errors generated.
[2194/8943] Building C object _deps/unified-memory-framework-build/src/pool/CMakeFiles/disjoint_pool.dir/__/__/__/unified-memory-framework-src/src/utils/utils_log.c.o
FAILED: _deps/unified-memory-framework-build/src/pool/CMakeFiles/disjoint_pool.dir/__/__/__/unified-memory-framework-src/src/utils/utils_log.c.o 
ccache /opt/sycl/bin/clang -DUMF_SHARED_LIBRARY -DUMF_VERSION=0.9.0-rc1.git18.g1c34aae -DUR_ENABLE_SANITIZER -DUR_VALIDATION_LAYER_SUPPORTED_VERSION=\"0\" -DUR_VERSION=\"0\" -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/__w/llvm/llvm/build/_deps/unified-memory-framework-build/src/pool -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/pool -I/__w/llvm/llvm/build/include -I/__w/llvm/llvm/src/llvm/include -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/include -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/utils -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/base_alloc -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/include/umf/pools -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/critnib -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/provider -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/memspaces -I/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/memtargets -fPIC -fno-semantic-interposition -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-error -O3 -DNDEBUG -fPIC -Wall -Wextra -Werror -Wpedantic -Wempty-body -Wunused-parameter -Wformat -Wformat-security -Wcast-qual -Wunused-result -MD -MT _deps/unified-memory-framework-build/src/pool/CMakeFiles/disjoint_pool.dir/__/__/__/unified-memory-framework-src/src/utils/utils_log.c.o -MF _deps/unified-memory-framework-build/src/pool/CMakeFiles/disjoint_pool.dir/__/__/__/unified-memory-framework-src/src/utils/utils_log.c.o.d -o _deps/unified-memory-framework-build/src/pool/CMakeFiles/disjoint_pool.dir/__/__/__/unified-memory-framework-src/src/utils/utils_log.c.o -c /__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/utils/utils_log.c
/__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/utils/utils_log.c:62:5: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
   62 |     default:
      |     ^
1 error generated.

We are working on a fix. Will create a PR soon.

@pbalcer
Copy link
Contributor

pbalcer commented Jul 26, 2024

CI on macOS is also broken:

-- Checking for module 'hwloc>=2.3.0'
--   No package 'hwloc' found
-- Checking for module 'libhwloc' using find_library()
CMake Error at /Users/runner/work/llvm/llvm/build/_deps/unified-memory-framework-src/cmake/FindLIBHWLOC.cmake:71 (message):
  libhwloc NOT found (set CMAKE_PREFIX_PATH to point the location)
Call Stack (most recent call first):
  /Users/runner/work/llvm/llvm/build/_deps/unified-memory-framework-src/CMakeLists.txt:100 (find_package)

This needs to be fixed by @intel/dpcpp-devops-reviewers by doing brew install hwloc on the mac runners.
No, I just looked at the mac workflow, we can it fix ourselves. Sorry for the false alarm. PR coming.

hdelan pushed a commit to hdelan/llvm that referenced this pull request Jul 26, 2024
Testing PR for: oneapi-src/unified-runtime#1430

---------

Co-authored-by: Krzysztof Swiecicki <krzysztof.swiecicki@intel.com>
Co-authored-by: Steffen Larsen <steffen.larsen@intel.com>
steffenlarsen pushed a commit that referenced this pull request Jul 26, 2024
`hwloc` became a dependency after
#13343 was merged. CI infrastructure
has been updated to have `hwloc` installed, but it's still missing on
macOS runner.

Additionally, UMF compile options caused errors on SYCL runners that
should be resolved after UR version bump included in this patch.

Logs:
https://github.com/intel/llvm/actions/runs/10106492701/job/27948711331
and
https://github.com/intel/llvm/actions/runs/10106492701/job/27948711538.
@jsji
Copy link
Contributor

jsji commented Jul 26, 2024

intel/llvm and downstream infra has been updated to have required dependancies (hwloc)

Note this is NOT true, it turns out that we haven't have hwloc installed in ANY of our internal build system, so I am going to revert this in sycl-web first to unblock pulldown. This means this (and any new UR changes) will NOT be pulldown into downstream until we get the internal build system fixed , I have contacted our infrastructure team, hopefully they can help to install it ASAP.

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.