File size: 1,797 Bytes
660c0b5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# Where does "Error: tdms_place.tcl, 35 cannot create std::vector larger than max_size()"
Tool: Global Placement
Subcategory: Memory allocation error
## Conversation
### oharboe
I want to debug it, but I searched the code and couldn't find this error message in the source.
```
[INFO GPL-0003] SiteSize: 54 270
[INFO GPL-0004] CoreAreaLxLy: 2160 2160
[INFO GPL-0005] CoreAreaUxUy: 25922160 25922160
Error: tdms_place.tcl, 35 cannot create std::vector larger than max_size()
Command exited with non-zero status 1
```
### maliberty
My guess is this is an STL exception and not in the OR code. In gdb try 'catch throw' to see when it is being thrown.
### oharboe
This is odd... 48000*96000 = 4608000000. Ah. overflow.


```
D$ git diff
diff --git a/src/gpl/src/placerBase.cpp b/src/gpl/src/placerBase.cpp
index 30ff82771..4f2c10b4e 100644
--- a/src/gpl/src/placerBase.cpp
+++ b/src/gpl/src/placerBase.cpp
@@ -1002,8 +1002,8 @@ void PlacerBase::initInstsForUnusableSites()
{
dbSet<dbRow> rows = db_->getChip()->getBlock()->getRows();
- int siteCountX = (die_.coreUx() - die_.coreLx()) / siteSizeX_;
- int siteCountY = (die_.coreUy() - die_.coreLy()) / siteSizeY_;
+ long siteCountX = (die_.coreUx() - die_.coreLx()) / siteSizeX_;
+ long siteCountY = (die_.coreUy() - die_.coreLy()) / siteSizeY_;
enum PlaceInfo
{
```
gives me:
```
[INFO GPL-0002] DBU: 1000
[INFO GPL-0003] SiteSize: 54 270
[INFO GPL-0004] CoreAreaLxLy: 2160 2160
[INFO GPL-0005] CoreAreaUxUy: 25922160 25922160
Error: out of memory.
```
|