gtcasl / gpuocelot

GPUOCelot: A dynamic compilation framework for PTX
http://gpuocelot.gatech.edu/
BSD 3-Clause "New" or "Revised" License
280 stars 69 forks source link

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

Closed jwang323 closed 9 years ago

jwang323 commented 9 years ago

From gregory....@gatech.edu on February 06, 2010 03:31:14

What steps will reproduce the problem? This test program:

include

include <tr1/tuple>

include

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: http://code.google.com/p/gpuocelot/issues/detail?id=38

jwang323 commented 9 years ago

From gregory....@gatech.edu on October 18, 2010 11:48:58

This is a gcc issue not an ocelot issue.

Status: WontFix