Skip to content

Conversation

dzhwinter
Copy link
Contributor

@dzhwinter dzhwinter commented Dec 20, 2017

fix #6794

if (range.first == range.second) {
PADDLE_THROW(
"'Place' is not supported, Please re-compile with WITH_GPU "
"option");
Copy link
Contributor

Choose a reason for hiding this comment

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

"..., Please re-compile with WITH_GPU option"

This hint may not be intuitive. Currently platform::Place contains CUDNNPlace, GPUPlace, CPUPlace, MKLDNNPlace.
I think we can output this unsupported place by calling this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right.
But we will remove the MKLPlace, CUDNNPlace soon. Place only represent address space, we will split it.
#6746
And, some interface of places isn't supported well. Such as is_cpu_place, default_gpu, we will not fix them because these things will be removed soon.

Copy link
Contributor

Choose a reason for hiding this comment

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

People who look at this code may get confused. And you should add a TODO inside the code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am working on removing the Place related problem.

Copy link
Contributor

@chengduoZH chengduoZH left a comment

Choose a reason for hiding this comment

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

LGTM

@dzhwinter dzhwinter merged commit abde313 into PaddlePaddle:develop Dec 22, 2017
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.

The GpuMemcpySync slow down training.

2 participants