Maybe you can follow this disscussion:

  
      github.com/torch/distro
  
  
    
  
	  
  

  
    
      Ubuntu 16.04 - torch installation failure 23
    

    
      
        opened 
        
          
        
        Aug 25, 2016
      
      


      
        
          
          shriphani
        
      
    
  



  Hi,
I am following these instructions: http://torch.ch/docs/getting-started.html and I get this on the final command:
/usr/include/string.h: In function ‘void* __mempcpy_inline(void*, const void*, size_t)’:
/usr/include/string.h:652:42:...





  
  
    
    
  
  


In my case, I am using Ubuntu 16.04 and CUDA 7.5 and I add -D_FORCE_INLINES in CXXFLAGS in file torch/lib/nccl/Makefile.
5912c61fbc84e.png1859×588 115 KB
@shiningsurya @ywu36