Speed up pytorch run

Please help me, how to I use the entire memory of a 64gb and 32 cpus server to run a case of CNNpytorch, try with bachtsize and num_workers but output error: broken pipe and got very slow
thanks