tozhovez / cudpp

Automatically exported from code.google.com/p/cudpp
Other
0 stars 0 forks source link

Compiling cudpp on VS2008/2010 causes fatal error C1060: compiler is out of heap space #107

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download CUDPP Release 2.0, Aug 8 release
2. Use CMake took to create sln files
3. build on VS2010 using the v90 platform toolset

What is the expected output? What do you see instead?
12_segmented_scan_app.compute_10.cudafe2.gpu
2>  segmented_scan_app.cu
2>  tmpxft_000007b8_00000000-6_segmented_scan_app.compute_13.cudafe1.gpu
2>  tmpxft_000007b8_00000000-16_segmented_scan_app.compute_13.cudafe2.gpu
2>  segmented_scan_app.cu
2>  tmpxft_000007b8_00000000-3_segmented_scan_app.compute_20.cudafe1.gpu
2>  tmpxft_000007b8_00000000-20_segmented_scan_app.compute_20.cudafe2.gpu
2>  segmented_scan_app.cu
2>ptxas C : 
/Users/Peter/AppData/Local/Temp/tmpxft_000007b8_00000000-9_segmented_scan_app.co
mpute_10.ptx, line 183650; warning : Double is not supported. Demoting to float
2>  segmented_scan_app.cu
2>  segmented_scan_app.cu
2>  tmpxft_000007b8_00000000-8_segmented_scan_app.compute_10.cudafe1.cpp
2>  tmpxft_000007b8_00000000-32_segmented_scan_app.compute_10.ii
2>  
2>C:/Users/Peter/AppData/Local/Temp/tmpxft_000007b8_00000000-5_segmented_scan_ap
p.fatbin.c(2090276): fatal error C1060: compiler is out of heap space
2>  
2>  CMake Error at 
CMakeFiles/cudpp_generated_segmented_scan_app.cu.obj.cmake:256 (message):
2>    Error generating file
2>    
C:/Users/Peter/Documents/Labwork/Thesis/CodeSamples/cudpp_src_2.0/build/src/cudp
p/Debug/cudpp_generated_segmented_scan_app.cu.obj

What version of the product are you using? On what operating system?
Win7 x32, Visual Studio 2010 (also tested on 2008)

Please provide any additional information below.
Attempted several fixes suggested by MS, none of which worked:
increased page file size to maximum allowed
Used the /Zm option with values ranging from 100 to 2000
Removed the /Zm options

Original issue reported on code.google.com by Peter.Ch...@gmail.com on 7 Sep 2011 at 5:01

GoogleCodeExporter commented 8 years ago
http://cudpp.googlecode.com/svn/tags/2.0/doc/html/index.html

Known issue: "There is a known issue that the compile time for CUDPP is very 
long and the compiled library file size is very large. On some systems with < 
4GB of available memory (or virtual memory), the CUDA compiler can run out of 
memory and compilation can fail. We will be working on these issues for future 
releases."

How much memory do you have on your system?

Original comment by jow...@gmail.com on 7 Sep 2011 at 5:08

GoogleCodeExporter commented 8 years ago
My system has 4GB RAM, however 1GB is reserved as video RAM. I have 4GB of 
virtual memory
To be exact: 3061 MB accessible physical memory and 4095MB virtual memory

Original comment by Peter.Ch...@gmail.com on 7 Sep 2011 at 5:30

GoogleCodeExporter commented 8 years ago
So it sounds like that is precisely on point for the aforementioned 
release-note known-issue, I'm afraid. This is an NVIDIA compiler issue rather 
than a CUDPP issue, with the proviso (of course) that it's CUDPP code that is 
making the compiler use so much memory. Can you up your virtual memory (4 GB 
sounds low for a modern system anyway) and see if that might allow the compiler 
to finish?

Original comment by jow...@gmail.com on 7 Sep 2011 at 10:11

GoogleCodeExporter commented 8 years ago
I have upped the virtual memory to 8 GB (4GB on each of my drives, the maximum 
allowed by Win7 x32). It does not resolve the 'out of heap space' bug

Original comment by Peter.Ch...@gmail.com on 9 Sep 2011 at 6:23

GoogleCodeExporter commented 8 years ago
You might need to upgrade to a 64-bit OS.  I'm not sure we have tested CUDPP 
2.0 on a 32-bit OS...

Original comment by harr...@gmail.com on 9 Sep 2011 at 2:57

GoogleCodeExporter commented 8 years ago
Same problem on 32-bit Linux, Ubuntu 11.04 with kernel 2.6.38-11-generic 
#50-Ubuntu SMP Mon Sep 12 21:18:14 UTC 2011 i686 athlon i386 GNU/Linux. The top 
program says Mem 2GB total and Swap 4GB total.
cmake 2.8.3, cuda 4.0

[ 13%] Building NVCC (Device) object 
src/cudpp/./cudpp_generated_segmented_scan_app.cu.o
ptxas /tmp/tmpxft_00000cbd_00000000-5_segmented_scan_app.compute_10.ptx, line 
185427; warning : Double is not supported. Demoting to float
virtual memory exhausted: Cannot allocate memory
CMake Error at CMakeFiles/cudpp_generated_segmented_scan_app.cu.o.cmake:256 
(message):
  Error generating file
  /home/guillaume/src/cudpp_src_2.0/build/src/cudpp/./cudpp_generated_segmented_scan_app.cu.o

Original comment by gmill...@gmail.com on 6 Oct 2011 at 5:19

GoogleCodeExporter commented 8 years ago
unfortunately CUDPP 2.0 seems to require a 64-bit OS to compile successfully 
currently.

Original comment by harr...@gmail.com on 27 Nov 2011 at 10:40

GoogleCodeExporter commented 8 years ago
Issue 109 has been merged into this issue.

Original comment by harr...@gmail.com on 27 Nov 2011 at 10:41

GoogleCodeExporter commented 8 years ago
can't believe this issue still not fixed yet.

Original comment by Justin.S...@gmail.com on 29 Oct 2012 at 1:24

GoogleCodeExporter commented 8 years ago
We would be delighted to hear any suggestions you had about how to structure 
the project such that it eliminates this issue. If this was easily fixable, I 
assure you we would place high priority on getting it fixed.

Original comment by jow...@gmail.com on 30 Oct 2012 at 5:06