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
szülő a5508ae185
commit 06e54694c5
4 fájl változott, egészen pontosan 26 új sor hozzáadva és 11 régi sor törölve
+3 -1
Fájl megtekintése
@@ -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];