help me help me

All PVFProjects build failed.


Compiling Project …
SourceFile1.cuf
c:\Users\nhri-gpu\documents\visual studio 2015\Projects\PVFProject4\PVFProject4\SourceFile1.cuf(0) : error S0310 : Adjustable array can not have automatic bounds specifiers - a
c:\Users\nhri-gpu\documents\visual studio 2015\Projects\PVFProject4\PVFProject4\SourceFile1.cuf(0) : error S0310 : Adjustable array can not have automatic bounds specifiers - b
0 inform, 0 warnings, 2 severes, 0 fatal for main




Compiling Project …
SourceFile4.cuf
Linking…
LINK : fatal error LNK1104: cannot open file ‘mkl_intel_lp64.lib’
C:\Users\nhri-gpu\Documents\Visual Studio 2015\Projects\PVFProject3\PVFProject3\x64\Debug/PVFProject3.exf: error STP001: cannot open file
PVFProject3 build failed.




Compiling Project …
SourceFile1.cuf
C:\Users\nhri-gpu\Documents\Visual Studio 2015\Projects\matmul\matmul\SourceFile1.cuf(25) : error S0155 : Calls from device code to a host function are allowed only in emulation mode - a
C:\Users\nhri-gpu\Documents\Visual Studio 2015\Projects\matmul\matmul\SourceFile1.cuf(26) : error S0155 : Calls from device code to a host function are allowed only in emulation mode - b
C:\Users\nhri-gpu\Documents\Visual Studio 2015\Projects\matmul\matmul\SourceFile1.cuf(39) : error S0155 : Calls from device code to a host function are allowed only in emulation mode - c
C:\Users\nhri-gpu\Documents\Visual Studio 2015\Projects\matmul\matmul\SourceFile1.cuf(39) : error S0072 : Assignment operation illegal to external procedure c
0 inform, 0 warnings, 4 severes, 0 fatal for mmul_kernel
C:\Users\nhri-gpu\Documents\Visual Studio 2015\Projects\matmul\matmul\SourceFile1.cuf(73) : error S0446 : Argument number 1 to mmul_kernel: rank mismatch
C:\Users\nhri-gpu\Documents\Visual Studio 2015\Projects\matmul\matmul\SourceFile1.cuf(73) : error S0446 : Argument number 2 to mmul_kernel: rank mismatch
C:\Users\nhri-gpu\Documents\Visual Studio 2015\Projects\matmul\matmul\SourceFile1.cuf(73) : error S0446 : Argument number 3 to mmul_kernel: rank mismatch
0 inform, 0 warnings, 3 severes, 0 fatal for mmul


please help me thank you!

Hi eggbaby123456,

Without the source, I can’t say specifically how to fix your code

Adjustable array can not have automatic bounds specifiers - a

My guess is that you’re passing in “a” as an adjustable array but sizing it using an intrinsic such as “size” or “bounds”. Though, it could be that you’re missing an interface block as well.

LINK : fatal error LNK1104: cannot open file ‘mkl_intel_lp64.lib’

Most likely the linker can’t find the MKL library.

Calls from device code to a host function are allowed only in emulation mode - a

You probably haven’t declared “a” as an array, so the compiler is implicitly thinking it’s a subroutine call.

Assignment operation illegal to external procedure c

Same problem in that the compiler thinks “c” is a subroutine call so you can’t assign a value to it.

Argument number 1 to mmul_kernel: rank mismatch

You’re passing in an array having a different number of ranks than what the interface think it should have.

-Mat