Open
Description
I tried pulling down a fresh version of RedisAI today and ran into some build errors (see below). The commands that I ran were:
git clone https://github.com/RedisAI/RedisAI.git --branch v1.0.2
cd RedisAI
bash get_deps.sh cpu
ALL=1 make -C opt clean build
It looks like dlpack bumped their version to 0.4 yesterday. My previous successful build had dlpack v0.3, so it seems reasonable there could be an error with the new version.
redisai_test/RedisAI/src/tensor.c:159:8: error: field designator 'ctx' does not refer to any field in type 'DLTensor'
.ctx = ctx,
^
redisai_test/RedisAI/src/tensor.c:180:57: error: no member named 'ctx' in 'DLTensor'
RedisModule_SaveUnsigned(io, tensor->tensor.dl_tensor.ctx.device_type);
~~~~~~~~~~~~~~~~~~~~~~~~ ^
redisai_test/RedisAI/src/tensor.c:181:57: error: no member named 'ctx' in 'DLTensor'
RedisModule_SaveUnsigned(io, tensor->tensor.dl_tensor.ctx.device_id);
~~~~~~~~~~~~~~~~~~~~~~~~ ^
redisai_test/RedisAI/src/tensor.c:297:8: error: field designator 'ctx' does not refer to any field in type 'DLTensor'
.ctx = ctx,
^
redisai_test/RedisAI/src/tensor.c:440:35: error: no member named 'ctx' in 'DLTensor'
.ctx = dl_tensor->dl_tensor.ctx,
~~~~~~~~~~~~~~~~~~~~ ^
5 errors generated.
make[3]: *** [src/CMakeFiles/redisai_tflite_obj.dir/tensor.c.o] Error 1
make[2]: *** [src/CMakeFiles/redisai_tflite_obj.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [cmake-build] Error 2