cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

lxp121
Journeyman III

questions about address translation

I am confuse with address translation. there are some questions:

1. can i define a 1d stream in host code larger than 8192?

2. can i define a 2d stream in host code, and use it as a 1d gather stream in kernel? such as:

Stream<int> a(2, dims);  // host code

void kernel test(int a[], out int b<>;

3. if i define a 2d stream, the size in x direction is larger than 8192, but the total size of stream is smaller than 2^26, is this legal? such as

dims[2] = {9000, 200}

Thanks!

 

0 Likes
1 Reply
gaurav_garg
Adept I

1. Yes, you can. Brook+ internally converts this into a 2D buffer.

2. Results might be undefined in some cases.

3. It's not legal. Brook+ doesn't do any conversion for 2D streams. If size is not suported by underlying hardware, its an error.

0 Likes