mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2024-11-24 14:49:17 +08:00
update cuDLA samples
fix missing DPRINTF fix Makefile
This commit is contained in:
parent
e64c65a0d3
commit
3a05f29b94
|
@ -1,5 +1,5 @@
|
|||
################################################################################
|
||||
# Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
|
||||
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
|
@ -346,6 +346,8 @@ endif
|
|||
|
||||
ALL_CCFLAGS += --std=c++11 --threads 0
|
||||
|
||||
LIBRARIES += -lcudla
|
||||
|
||||
ifeq ($(SAMPLE_ENABLED),0)
|
||||
EXEC ?= @echo "[@]"
|
||||
endif
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
<keyword>CPP11</keyword>
|
||||
</keywords>
|
||||
<libraries>
|
||||
<library>cudla</library>
|
||||
</libraries>
|
||||
<librarypaths>
|
||||
</librarypaths>
|
||||
|
|
|
@ -35,6 +35,8 @@
|
|||
#include <fstream>
|
||||
#include <sstream>
|
||||
|
||||
#define DPRINTF(...) printf(__VA_ARGS__)
|
||||
|
||||
static void printTensorDesc(cudlaModuleTensorDescriptor* tensorDesc) {
|
||||
DPRINTF("\tTENSOR NAME : %s\n", tensorDesc->name);
|
||||
DPRINTF("\tsize: %lu\n", tensorDesc->size);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
################################################################################
|
||||
# Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
|
||||
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
|
@ -346,6 +346,8 @@ endif
|
|||
|
||||
ALL_CCFLAGS += --std=c++11 --threads 0
|
||||
|
||||
LIBRARIES += -lcudla
|
||||
|
||||
ifeq ($(SAMPLE_ENABLED),0)
|
||||
EXEC ?= @echo "[@]"
|
||||
endif
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
<keyword>CPP11</keyword>
|
||||
</keywords>
|
||||
<libraries>
|
||||
<library>cudla</library>
|
||||
</libraries>
|
||||
<librarypaths>
|
||||
</librarypaths>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
################################################################################
|
||||
# Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
|
||||
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
|
@ -349,7 +349,7 @@ endif
|
|||
|
||||
ALL_CCFLAGS += --std=c++11 --threads 0
|
||||
|
||||
LIBRARIES += -lnvscibuf -lnvscisync
|
||||
LIBRARIES += -lcudla -lnvscibuf -lnvscisync
|
||||
|
||||
ifeq ($(SAMPLE_ENABLED),0)
|
||||
EXEC ?= @echo "[@]"
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
<keyword>CPP11</keyword>
|
||||
</keywords>
|
||||
<libraries>
|
||||
<library>cudla</library>
|
||||
<library>nvscibuf</library>
|
||||
<library>nvscisync</library>
|
||||
</libraries>
|
||||
|
|
|
@ -37,6 +37,8 @@
|
|||
#include <sstream>
|
||||
#include <unistd.h>
|
||||
|
||||
#define DPRINTF(...) printf(__VA_ARGS__)
|
||||
|
||||
static void printTensorDesc(cudlaModuleTensorDescriptor* tensorDesc) {
|
||||
DPRINTF("\tTENSOR NAME : %s\n", tensorDesc->name);
|
||||
DPRINTF("\tsize: %lu\n", tensorDesc->size);
|
||||
|
|
Loading…
Reference in New Issue
Block a user