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

nanbield chipstar experiment #3

Open
wants to merge 9 commits into
base: nanbield
Choose a base branch
from

Conversation

zboszor
Copy link
Owner

@zboszor zboszor commented Jun 21, 2024

@reibax-marcus FYI

It doesn't work yet.

@reibax-marcus
Copy link
Contributor

Thanks for reporting. I currently don't have time to experiment with nanbield, but I will keep it in mind. If I have time at any point I will definitely look into it.

@zboszor
Copy link
Owner Author

zboszor commented Jun 21, 2024

Thanks for reporting. I currently don't have time to experiment with nanbield, but I will keep it in mind. If I have time at any point I will definitely look into it.

Don't worry. Since chipStar seems to support LLVM 15 and up, mickledore and up can work.

Hopefully PyTorch and other stuff supporting CUDA can be convinced to use chipStar.

@zboszor
Copy link
Owner Author

zboszor commented Jun 21, 2024

chipStar is not a complete CUDA replacement yet. PyTorch disqualifies it in its CMake framework:

warning: cucc is a work-in-progress. It is incomplete and may behave incorrectly.
Please, report issues at https://github.com/CHIP-SPV/chipStar/issues.
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (found version "clang version 15.0.7 (https://github.com/llvm/llvm-project 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/zozo/test-yocto-4.3-gh/tmp-sicom-glibc/work/corei7-64-oe-linux/python3-pytorch/2.3.1/recipe-sysroot-native/usr/bin

.clang version 15.0.7 (https://github.com/llvm/llvm-project 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/zozo/test-yocto-4.3-gh/tmp-sicom-glibc/work/corei7-64-oe-linux/python3-pytorch/2.3.1/recipe-sysroot-native/usr/bin

")
CMake Warning at cmake/public/cuda.cmake:31 (message):
  Caffe2: CUDA cannot be found.  Depending on whether you are building Caffe2
  or a Caffe2 dependent library, the next warning / error will give you more
  info.
Call Stack (most recent call first):
  cmake/Dependencies.cmake:44 (include)
  CMakeLists.txt:754 (include)


CMake Warning at cmake/Dependencies.cmake:80 (message):
  Not compiling with CUDA.  Suppress this warning with -DUSE_CUDA=OFF.
Call Stack (most recent call first):
  CMakeLists.txt:754 (include)

Postponing for now.

zboszor added 9 commits July 1, 2024 09:33
This should allow using icpx in native builds by chipStar.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Similar reasoning as for intel-oneapi-dpcpp-cpp.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
This is for setvars.sh in Intel DPCPP compiler.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Similar reasoning as for intel-oneapi-dpcpp-cpp and
intel-oneapi-dpcpp-cpp-runtime.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Also add a patch to allow building tbb-native on hosts with GCC 14.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
This fixes a build error for ocl-icd-native on hosts with GCC 14.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Use a different branch where cucc can be symlinked as nvcc.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
@zboszor zboszor force-pushed the nanbield-chipstar-experiment branch from 1f95de7 to b52eeb3 Compare July 1, 2024 07:34
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