It is always better to use a GPU for deep learning. GPU can reduce the training time speed so that we can try different parameters and architecture faster. Unfortunately configuring a GPU on Linux sometimes is tricky. I tried many different methods, and I was not successful with many of them until I found this blog post. it described the process clearly.