Csound Csound-dev Csound-tekno Search About

[Csnd-dev] Follow-up on building CUDA opcodes on linux

Date2018-01-19 12:59
FromAnders Genell
Subject[Csnd-dev] Follow-up on building CUDA opcodes on linux
I just now installed the latest CUDA toolkit (9.1 downloaded from nvidia) on an ubuntu 17.10 machine with the latest cmake from git (cmake version 3.10.20180119-gbe2f0) and after changing CmakeLists.txt for the cuda opcodes so the the lowest version gpu referred to is sm_30 Csound at least builds ok with BUILD_CUDA_OPCODES=1

I have not tried to actually run and csd with the opcodes yet, but this is promising so far.

Regards,
Anders

Date2018-01-19 15:19
FromAnders Genell
SubjectRe: [Csnd-dev] Follow-up on building CUDA opcodes on linux
ALAS!
I spoke to soon - I had in fact not enabled the cuda build as I thought. It seems the cuda opcodes code needs to be updated somewhat - I get 
[ 59%] Building NVCC (Device) object Opcodes/cuda/CMakeFiles/cudaop2.dir/cudaop2_generated_pvsops.cu.o
/home/sim/Src/csound/Opcodes/cuda/pvsops.cu(139): error: identifier "CUFFT_COMPATIBILITY_NATIVE" is undefined
which seems to indicate that CUFFT_COMPABILITY support has changed for the most recent cuda toolkit version...

Regards,
Anders


On Fri, Jan 19, 2018 at 1:59 PM, Anders Genell <anders.genell@gmail.com> wrote:
I just now installed the latest CUDA toolkit (9.1 downloaded from nvidia) on an ubuntu 17.10 machine with the latest cmake from git (cmake version 3.10.20180119-gbe2f0) and after changing CmakeLists.txt for the cuda opcodes so the the lowest version gpu referred to is sm_30 Csound at least builds ok with BUILD_CUDA_OPCODES=1

I have not tried to actually run and csd with the opcodes yet, but this is promising so far.

Regards,
Anders