jski

Problem building sample code

Discussion created by jski on Aug 1, 2008
Latest reply on Aug 7, 2008 by michael.chu

I'm trying (for the 1st time) to make simple_matmult not using GPU emulation and I get the following errors:

In file included from ../../../sdk/include/brook/brt.hpp:56,
                 from ../../common/common.h:3,
                 from ../../common/common.cpp:4:
../../../sdk/include/brook/brtvector.hpp:190: error: explicit template specialization cannot have a storage class
../../../sdk/include/brook/brtvector.hpp:191: error: explicit template specialization cannot have a storage class
../../../sdk/include/brook/brtvector.hpp:192: error: explicit template specialization cannot have a storage class
../../../sdk/include/brook/brtvector.hpp:193: error: explicit template specialization cannot have a storage class
../../../sdk/include/brook/brtvector.hpp:194: error: explicit template specialization cannot have a storage class
../../../sdk/include/brook/brtvector.hpp:195: error: explicit template specialization cannot have a storage class
../../common/common.cpp: In function ‘float* allocate_mat_f(unsigned int, unsigned int)’:
../../common/common.cpp:397: error: ‘memset’ was not declared in this scope
../../common/common.cpp: In function ‘void normalize_mat_f(float*, unsigned int, unsigned int, float, float)’:
../../common/common.cpp:427: error: ‘INT_MAX’ was not declared in this scope
../../common/common.cpp:428: error: ‘INT_MIN’ was not declared in this scope
../../common/common.cpp: In function ‘float2* allocate_mat_f2(unsigned int, unsigned int)’:
../../common/common.cpp:531: error: ‘memset’ was not declared in this scope
../../common/common.cpp: In function ‘float3* allocate_mat_f3(unsigned int, unsigned int)’:
../../common/common.cpp:639: error: ‘memset’ was not declared in this scope
../../common/common.cpp: In function ‘float4* allocate_mat_f4(unsigned int, unsigned int)’:
../../common/common.cpp:759: error: ‘memset’ was not declared in this scope
../../common/common.cpp: In function ‘void normalize_mat_f4(float4*, unsigned int, unsigned int, float, float)’:
../../common/common.cpp:771: error: ‘INT_MAX’ was not declared in this scope
../../common/common.cpp:772: error: ‘INT_MIN’ was not declared in this scope
../../common/common.cpp: In function ‘double* allocate_mat_d(unsigned int, unsigned int)’:
../../common/common.cpp:911: error: ‘memset’ was not declared in this scope
../../common/common.cpp: In function ‘void normalize_mat_d(double*, unsigned int, unsigned int, double, double)’:
../../common/common.cpp:940: error: ‘INT_MAX’ was not declared in this scope
../../common/common.cpp:941: error: ‘INT_MIN’ was not declared in this scope
../../common/common.cpp: In function ‘int* allocate_mat_i(unsigned int, unsigned int)’:
../../common/common.cpp:1071: error: ‘memset’ was not declared in this scope
../../common/common.cpp: In function ‘void normalize_mat_i(int*, unsigned int, unsigned int, int, int)’:
../../common/common.cpp:1100: error: ‘INT_MAX’ was not declared in this scope
../../common/common.cpp:1101: error: ‘INT_MIN’ was not declared in this scope
make: *** [built_d/common.o] Error 1

I using openSuSE 11.  Any ideas?

jski

PS> And yes, I set:

export LD_LIBRARY_PATH=/usr/local/amdcal/lib64/:/usr/local/amdbrook/sdk/lib:$LD_LIBRARY_PATH

Outcomes