Updates so hip compiles on CUDA.

[ROCm/hip commit: be8d0ba644]
This commit is contained in:
Ben Sander
2017-05-27 15:55:07 -05:00
parent 715aeef97c
commit c88190d698
5 changed files with 28 additions and 26 deletions
@@ -18,7 +18,7 @@ THE SOFTWARE.
*/
/* HIT_START
* BUILD: %t %s ../../test_common.cpp
* BUILD: %t %s ../../test_common.cpp NVCC_OPTIONS --std=c++11
* RUN: %t
* HIT_END
*/
@@ -18,7 +18,7 @@ THE SOFTWARE.
*/
/* HIT_START
* BUILD: %t %s ../../test_common.cpp
* BUILD: %t %s ../../test_common.cpp NVCC_OPTIONS --std=c++11
* RUN: %t
* HIT_END
*/
+1 -1
View File
@@ -249,7 +249,7 @@ void initArraysForHost(T **A_h, T **B_h, T **C_h,
}
}
setDefaultData(N, A_h ? *A_h : nullptr, B_h ? *B_h : nullptr, C_h ? *C_h : nullptr);
setDefaultData(N, A_h ? *A_h : NULL, B_h ? *B_h : NULL, C_h ? *C_h : NULL);
}