[General boards] [Fall 2018 courses] [Summer 2018 courses] [Winter 2018 courses] [Older or newer terms]

Cuda_error_out_of_memory


#1

I was getting memory leak in the title, so I did

export CUDA_VISIBLE_DEVICES="";

in the command line and now it seems to work. Is this okay?


#2

Is this on your machine or on the teaching labs machines?

Either way, it should be fine. Feel free to add a note about it if you like. Usually this error comes up immediately after starting the TF session if someone else is also using the same GPU; if it occurs after running a bit, you might have an actual bug that’s causing you to use too much memory. To be safe, disable the GPU like you did, and then monitor its memory usage and make sure it isn’t going too crazy.