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

my desktop use two gpu. occurred error that 'Memory growth cannot differ between GPU devices' #51

Open
Yeong-Seo opened this issue Aug 11, 2022 · 1 comment

Comments

@Yeong-Seo
Copy link

Yeong-Seo commented Aug 11, 2022

When i ran python train.py --mode="fit" --cfg_path="./configs/arc-res50.yaml", this error is occurred.

image

i found this code in train.py

image

so i thnk that two gpu have to set_memoy_growth() but 'flags.DEFINE_string('gpu', '0', 'which gpu to use')' is only one gpu. how can i do?

@mahendran-narayanan
Copy link

Use os.environ["CUDA_VISIBLE_DEVICES"]= "0" #gpu-id

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

2 participants