From dec6df008cfd495c6d979ccc9e0f3e58514aca97 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 26 Apr 2018 15:20:30 +0300 Subject: [PATCH] Add -D__device__=__attribute__((device)) --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index eb4b833..5bc42d4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -196,7 +196,7 @@ matrix: - ubuntu-toolchain-r-test - llvm-toolchain-trusty-5.0 script: - - clang++-5.0 -I . -c -x cuda -nocudainc -nocudalib --cuda-gpu-arch=sm_30 -std=c++11 libs/mp11/test/mp11.cpp + - clang++-5.0 -I . -c -x cuda -nocudainc -nocudalib --cuda-gpu-arch=sm_30 -D__device__="__attribute__((device))" -std=c++11 libs/mp11/test/mp11.cpp - os: osx compiler: clang++