运行所有的OpenCL例子的时候出现了如下的错误:
TIOCL FATAL: OpenCL needs 1 CMEM blocks to operate – one each for off-chip (DDR) and on-chip (MSMC SRAM or OCMC RAM) memory
求指点迷津!!!
Jian Zhou:
你是在TI的AM5728 demo板上测试的么?
weifeng liang:
— a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi+++ b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi@@ -62,6 +62,18 @@ reusable; status = "okay"; };++ cmem_block_mem_0: cmem_block_mem@a0000000 {+ reg = <0x0 0xa0000000 0x0 0x0c000000>;+ no-map;+ status = "okay";+ };++ cmem_block_mem_1_ocmc3: cmem_block_mem@40500000 {+ reg = <0x0 0x40500000 0x0 0x100000>;+ no-map;+ status = "okay";+ }; };
vdd_3v3: fixedregulator-vdd_3v3 {@@ -93,6 +105,27 @@ gpio = <&gpio7 11 GPIO_ACTIVE_HIGH>; };
+ cmem {+ compatible = "ti,cmem";+ #address-cells = <1>;+ #size-cells = <0>;++ #pool-size-cells = <2>;++ status = "okay";++ cmem_block_0: cmem_block@0 {+ reg = <0>;+ memory-region = <&cmem_block_mem_0>;+ cmem-buf-pools = <1 0x0 0x0c000000>;+ };++ cmem_block_1: cmem_block@1 {+ reg = <1>;+ memory-region = <&cmem_block_mem_1_ocmc3>;+ };+ };+
weifeng liang:
linux-4.4.19版本内核
cheng huang:
回复 Jian Zhou:
我使用的是J6,也出现了这个问题,求解答
cheng huang:
回复 Jian Zhou:
在使用J6上编译的opencv库,然后用了cv::cvtColor(color, bgr, CV_GRAY2BGR);这个函数就会出现上面的问题
yongqing wang:
回复 cheng huang:
J6是啥/?