[HIPIFY][#1439] Add reinterpret_cast to args of some functions

+ Perl part of [#1458]
+ Affected functions: hipFuncSetCacheConfig, hipFuncGetAttributes
+ Implement function generateHostFunctions() in hipify-clang for that purposes
+ Update hipify-perl accordingly
This commit is contained in:
Evgeny Mankov
2019-09-25 18:53:17 +03:00
parent bafec0a20e
commit 9d1d4b78e3
5 changed files with 53 additions and 13 deletions
@@ -22,7 +22,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
#include <stdio.h>
// CHECK: #include <hip/hip_runtime.h>
#include <cuda_runtime.h>
@@ -32,7 +31,7 @@ void fn(float* px, float* py) {
__shared__ double b[69];
for (auto&& x : b) x = *py++;
for (auto&& x : a) x = *px++ > 0.0;
for (auto&& x : a) if (x)* --py = *--px;
for (auto&& x : a) if (x) *--py = *--px;
}
int main() {