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

[CUDA] Defaulting to malloc in CHAllocator #6840

Open
pr1nce-harry opened this issue Feb 24, 2025 · 3 comments
Open

[CUDA] Defaulting to malloc in CHAllocator #6840

pr1nce-harry opened this issue Feb 24, 2025 · 3 comments
Labels

Comments

@pr1nce-harry
Copy link

Hi all,

New to fitting with gpu, I'm running with device: "cuda" with "max_bin": 63

I see heaps of these warnings on initialization:
[LightGBM] [Warning] Defaulting to malloc in CHAllocator!!!

Is this expected, or is something wrong? Is there a dataset param that I'm not setting correctly?

Luke

@jameslamb jameslamb changed the title Cuda - Defaulting to malloc in CHAllocator [CUDA] Defaulting to malloc in CHAllocator Feb 25, 2025
@jameslamb
Copy link
Collaborator

Thanks for using LightGBM.

It's very difficult to help you based only on an error message. Could you give us some more information please?

  • what version of LightGBM?
  • operating system?
  • how you installed LightGBM (e.g. conda vs. pip vs. building from source)?
  • how you are using LightGBM (CLI? Python? something else?)?
  • CUDA version and GPU type (output of nvidia-smi command)?

@pr1nce-harry
Copy link
Author

Sorry here's more info:

LightGBM tag v4.6.0 built from source (sh ./build-python.sh install --cuda), running in python
Docker image based on nvidia/cuda:12.6.0-cudnn-devel-ubuntu24.04
nvidia-smi screenshot
Image

@pr1nce-harry
Copy link
Author

After a lot of time, and "[LightGBM] [Warning] Defaulting to malloc in CHAllocator!!!" messages
I get the following error:
lightgbm.basic.LightGBMError: Check failed: (split_indices_block_size_data_partition) > (0) at /src/LightGBM/lightgbm-python/src/treelearner/cuda/cuda_data_partition.cpp, line 280

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants