cancel
Showing results for 
Search instead for 
Did you mean: 

HSA

marxin
Journeyman III

HSA: Kaveri machine does not support recursion functions

Jump to solution

Hello.

Recursion calls are explicitly mentioned in the Programmer's reference manual to be supported. However, even quite simple

test, as Fibonacci numbers, does not work.

Is it known issues for the Kaveri machine? If you are interested, I can attach HSAIL code snippet.

Thanks,

Martin

Tags (3)
0 Kudos
Reply
1 Solution

Accepted Solutions
jedwards
Staff
Staff

Re: HSA: Kaveri machine does not support recursion functions

Jump to solution

This is not only a limitation on Kaveri, but on any HSA platform using the HSA runtime. Currently the kernel compiler doesn't support the alloca instruction, and without the ability to allocate stack variables on the fly, kernels cannot be recursive. The lack of alloca support is clearly documented in the HSA-Runtime-AMD wiki's section on unimplemented functionality (even if recursion isn't).

The alloca instruction will be supported in an upcoming release (possibly September of 2015). Recursion should be supported at that time.

View solution in original post

0 Kudos
Reply
2 Replies
jtrudeau
Staff
Staff

Re: HSA: Kaveri machine does not support recursion functions

Jump to solution

Welcome marxin​. You are white listed, I'm moving this into the HSA forum.

0 Kudos
Reply
jedwards
Staff
Staff

Re: HSA: Kaveri machine does not support recursion functions

Jump to solution

This is not only a limitation on Kaveri, but on any HSA platform using the HSA runtime. Currently the kernel compiler doesn't support the alloca instruction, and without the ability to allocate stack variables on the fly, kernels cannot be recursive. The lack of alloca support is clearly documented in the HSA-Runtime-AMD wiki's section on unimplemented functionality (even if recursion isn't).

The alloca instruction will be supported in an upcoming release (possibly September of 2015). Recursion should be supported at that time.

View solution in original post

0 Kudos
Reply