Fix assert for windows. (#1329)
MSVC assert.h has no guard for include once. The macro assert overrides device assert definition. Do not include it for device compilation.
Этот коммит содержится в:
коммит произвёл
Maneesh Gupta
родитель
fbc9f7e20a
Коммит
c4655d167e
@@ -29,7 +29,14 @@ THE SOFTWARE.
|
||||
#include <hip/hcc_detail/host_defines.h>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
// assert.h is only for the host version of assert.
|
||||
// The device version of assert is implemented in hip/hcc_detail/hip_runtime.h.
|
||||
// Users should include hip_runtime.h for the device version of assert.
|
||||
#if !__HIP_DEVICE_COMPILE__
|
||||
#include <assert.h>
|
||||
#endif
|
||||
|
||||
#include <limits.h>
|
||||
#include <limits>
|
||||
#include <stdint.h>
|
||||
|
||||
Ссылка в новой задаче
Block a user