b7d8b4d148
[REASONS]
1. Make OS-dependent code more clear and readable
2. To ease Windows support
[ROCm/hip commit: d58b70d8a0]