nguyenminhduc9988 / gpuocelot

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

on 32-bit platforms gcc and nvcc disagree about the size of tuples of pairs #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
This test program:

#include <iostream>
#include <tr1/tuple>
#include <utility>

int main()
{
  std::cerr << "sizeof(long long): " << sizeof(long long) << std::endl;

  using namespace std;
  using namespace std::tr1;

  typedef pair<long long, long long> p;
  typedef tuple<p, unsigned int> t;

  std::cerr << "sizeof(tuple<pair<long long, long long> >, unsigned int>):
" << sizeof(t) << std::endl;

  return 0;
}

What is the expected output? What do you see instead?
The size is 20 on gcc4.4.1 32-bit, 24 on gcc4.4.1 64-bit, and 24 on nvcc3.0b

Original issue reported on code.google.com by gregory....@gatech.edu on 6 Feb 2010 at 8:31

GoogleCodeExporter commented 9 years ago
This is a gcc issue not an ocelot issue.

Original comment by gregory....@gatech.edu on 18 Oct 2010 at 6:48