hipcc uses -stdlib=stdlibc++ by default.

hipcc switches to -stdlib=libc++ if user requests it.
hack to disable LDG.
This commit is contained in:
Ben Sander
2016-04-28 13:17:49 -05:00
parent 6756b8f0bc
commit bae6462e3b
4 changed files with 26 additions and 11 deletions
+3 -1
View File
@@ -17,8 +17,10 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
#include <hc.hpp>
#include"hcc_detail/hip_ldg.h"
#if __hcc_workweek__ >= 16164
#if __hcc_workweek__ >= 16164 and defined (USE_LDG)
__device__ char __ldg(const char* ptr)
{
return ptr[0];