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

Does not working on cuda:1 #38

Open
Mombin opened this issue Jul 15, 2022 · 3 comments
Open

Does not working on cuda:1 #38

Mombin opened this issue Jul 15, 2022 · 3 comments

Comments

@Mombin
Copy link

Mombin commented Jul 15, 2022

Hello. Thank you for providing a greate code.

I have a issue on running prediction.

if i predice on cuda:1, the inference is not working.....

i trace the code step by step and I found "op/fused_act.py" load fused_bias_Act.cpp and fused_bias_act_kernel.cu.
that cpp code cannot another gpu...

how can i predict with other gpu?.....

@hunghn-dmobin
Copy link

Same issue, @Mombin have you found a solution yet?

@Mombin
Copy link
Author

Mombin commented Mar 2, 2023

@hunghn-dmobin
Insert the following keywords into the introduction of your code.

torch.cuda.set_device(device)

then it is working fine.

@dummyuser-123
Copy link

dummyuser-123 commented Jan 15, 2024

Hi @Mombin ,

Exactly where we have to insert this line: torch.cuda.set_device(device), in the model.py ?

image

I have tried like this, but this it is not working for me.

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

No branches or pull requests

3 participants