Accéder au contenu.
Menu Sympa

starpu-devel - [Starpu-devel] [PATCH] examples audio fix - define nite as global variable because old scope was not reacheable by starpu_data_filter, cublas fix and use CFLAGS variable on Makefile.

Objet : Developers list for StarPU

Archives de la liste

[Starpu-devel] [PATCH] examples audio fix - define nite as global variable because old scope was not reacheable by starpu_data_filter, cublas fix and use CFLAGS variable on Makefile.


Chronologique Discussions 
  • From: Francisco Alecrim <alecrim@gmail.com>
  • To: starpu-devel@lists.gforge.inria.fr
  • Subject: [Starpu-devel] [PATCH] examples audio fix - define nite as global variable because old scope was not reacheable by starpu_data_filter, cublas fix and use CFLAGS variable on Makefile.
  • Date: Thu, 15 Jun 2017 14:44:39 -0300
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=alecrim@gmail.com; spf=Pass smtp.mailfrom=alecrim@gmail.com; spf=None smtp.helo=postmaster@mail-ua0-f196.google.com
  • Ironport-phdr: 9a23:KmgxQBV4Zc9sM2pYuZSGt2nEkmLV8LGtZVwlr6E/grcLSJyIuqrYbBGGt8tkgFKBZ4jH8fUM07OQ6PG/HzRYqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjSwbLdwIRmssQndqtQdjJd/JKo21hbHuGZDdf5MxWNvK1KTnhL86dm18ZV+7SleuO8v+tBZX6nicKs2UbJXDDI9M2Ao/8LrrgXMTRGO5nQHTGoblAdDDhXf4xH7WpfxtTb6tvZ41SKHM8D6Uaw4VDK/5KpwVhTmlDkIOCI48GHPi8x/kqRboA66pxdix4LYeZyZOOZicq/Ye94RWGhPUdtLVyFZAo2ycZYBAeQCM+hftITxu0cCoAGiCQS2GO/j1jlFjWL2060g1OQhFBnL0gw6H90UtnTbsNT1NLwOXuCy0aLF0THDYO1K1jfn6YjIdw0qrPaWUrJ0b8Xe1VMvFwLAjliLpozlOima1uUJs2SB8+VgUuevhnchpgpsoTav3t8hhpfVio8R0FzJ9iV0zJwrKdGlSkN3e8OoHZ9Rui2CKYd7Qd8uTm5ttSonxbAJpZu2cSkKxZkk2RLSbvyKfoyT7R/hUeucJTd1iX15d7+6mhq/80mtxfb5W8S1zlpFtCRIn9zIu3wRyRPe5c6KQeZn8Ei7wzaAzQXT5/lEIU8qkarbLIYswrsqmZoStUTPBzL2l1/qgKOPeEUo5+yl5uX9brXpoZ+cMIB0igXgPag0hsO/BuE4PhAPX2id5+u8yKXu8VPlTLhOlPE7kanUvIrEKcgGpKO1GRJZ34Ii5hqnCjepytUYnX0JLFJffxKHipDkNEvKIP/mEfi/mVWskDJwyvDJO73uGJTNLnzZnLj9erZ97lZQyBAvwtBH+5JUFrYBLeroWk/trtPYFAc5MxGtz+n6Ftp9yJ0RWWaUD6+dMaPSqkOI5vk1L+mDao8Vvyz9K/c76PL0jH85n0Udfaiz0pcNZnC4BKcuH0LMemblmM8cVGsHoAc6ZOjrk0GZFzFdYGy9UuQ94Cs6AcSoF9TtXIeo1ZKb1SGwH4ZdYShvDl2HC3btP9GNX/oHciOXCsBkmz0AE7OmTtlyhlmVqAbmxu8/faLv8SoCuMemjYAt6g==
  • List-archive: <http://lists.gforge.inria.fr/pipermail/starpu-devel/>
  • List-id: "Developers list. For discussion of new features, code changes, etc." <starpu-devel.lists.gforge.inria.fr>

From: Francisco Keppler Silva Alecrim <alecrim@gmail.com>

Signed-off-by: Francisco Keppler Silva Alecrim <alecrim@gmail.com>
---
examples/audio/starpu_audio_processing.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/examples/audio/starpu_audio_processing.c
b/examples/audio/starpu_audio_processing.c
index 0f8b0ac..9aba9be 100644
--- a/examples/audio/starpu_audio_processing.c
+++ b/examples/audio/starpu_audio_processing.c
@@ -42,6 +42,7 @@
#define NSAMPLES (256*1024)
#define SAMPLERATE 44100

+unsigned niter = 0;
static unsigned nsamples = NSAMPLES;

/* This is a band filter, we want to stop everything that is not between
LOWFREQ and HIGHFREQ*/
@@ -217,7 +218,7 @@ static void band_filter_kernel_gpu(void *descr[],
STARPU_ATTRIBUTE_UNUSED void *

/* FFTW does not normalize its output ! */
float scal = 1.0f/nsamples;
- cublasStatus_t status = cublasSscal (starpu_cublas_local_handle(),
nsamples, &scal, localA, 1);
+ cublasStatus_t status = cublasSscal
(starpu_cublas_get_local_handle(), nsamples, &scal, localA, 1);
if (status != CUBLAS_STATUS_SUCCESS)
STARPU_CUBLAS_REPORT_ERROR(status);
}
@@ -410,7 +411,7 @@ int main(int argc, char **argv)

init_problem();

- unsigned niter = length_data/nsamples;
+ niter = length_data/nsamples;

fprintf(stderr, "input: %s\noutput: %s\n#chunks %u\n", inputfilename,
outputfilename, niter);

--
2.11.0





Archives gérées par MHonArc 2.6.19+.

Haut de le page