dilagurung / libyuv

Automatically exported from code.google.com/p/libyuv
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

AVX2 detect on OSX #276

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
AVX2 is not detected on Haswell

out/Release/libyuv_unittest --gtest_filter=*Cpu*
Note: Google Test filter = *Cpu*
[==========] Running 2 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 2 tests from libyuvTest
[ RUN      ] libyuvTest.TestCpuHas
Cpu Flags 13f0
Has ARM 0
Has NEON 0
Has X86 10
Has SSE2 20
Has SSSE3 40
Has SSE4.1 80
Has SSE4.2 100
Has AVX 200
Has AVX2 0
Has ERMS 0
Has FMA3 1000
Has MIPS 0
Has MIPS DSP 0
Has MIPS DSPR2 0
[       OK ] libyuvTest.TestCpuHas (0 ms)
[ RUN      ] libyuvTest.TestCpuId
Cpu Vendor: GenuineIntel 756e6547 49656e69 6c65746e
Cpu Family 6 (0x6), Model 69 (0x45)
[       OK ] libyuvTest.TestCpuId (0 ms)

Original issue reported on code.google.com by fbarch...@google.com on 15 Oct 2013 at 1:51

GoogleCodeExporter commented 9 years ago
r819 code has fix but breaks arm
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-
g++ -I external/libyuv/files/include -I external/libyuv/files -I 
out/target/product/armv7-a-neon/obj/STATIC_LIBRARIES/libyuv_static_intermediates
 -I libnativehelper/include/nativehelper  -isystem system/core/include -isystem 
hardware/libhardware/include -isystem hardware/libhardware_legacy/include 
-isystem hardware/ril/include -isystem libnativehelper/include -isystem 
frameworks/native/include -isystem frameworks/native/opengl/include -isystem 
frameworks/av/include -isystem frameworks/base/include -isystem 
frameworks/base/opengl/include -isystem external/skia/include -isystem 
out/target/product/armv7-a-neon/obj/include -isystem 
bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem 
bionic/libstdc++/include -isystem bionic/libc/kernel/common -isystem 
bionic/libc/kernel/arch-arm -isystem bionic/libm/include -isystem 
bionic/libm/include/arm -isystem bionic/libthread_db/include -c  
-fno-exceptions -Wno-multichar -msoft-float -fpic -fPIE -ffunction-sections 
-fdata-sections -funwind-tables -fstack-protector -Wa,--noexecstack 
-Werror=format-security -D_FORTIFY_SOURCE=1 -fno-short-enums -march=armv7-a 
-mfloat-abi=softfp -mfpu=neon -include 
build/core/combo/include/arch/linux-arm/AndroidConfig.h -I 
build/core/combo/include/arch/linux-arm/ -Wno-unused-but-set-variable 
-fno-builtin-sin -fno-strict-volatile-bitfields -Wno-psabi -mthumb-interwork 
-DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith 
-Werror=return-type -Werror=non-virtual-dtor -Werror=address 
-Werror=sequence-point -DNDEBUG -g -Wstrict-aliasing=2 -fgcse-after-reload 
-frerun-cse-after-loop -frename-registers -DNDEBUG -UDEBUG 
-fvisibility-inlines-hidden -DANDROID -fmessage-length=0 -W -Wall -Wno-unused 
-Winit-self -Wpointer-arith -Wsign-promo -Werror=return-type 
-Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -DNDEBUG 
-UDEBUG -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing  -fno-rtti      
-MD -MF 
out/target/product/armv7-a-neon/obj/STATIC_LIBRARIES/libyuv_static_intermediates
/source/rotate.d -o 
out/target/product/armv7-a-neon/obj/STATIC_LIBRARIES/libyuv_static_intermediates
/source/rotate.o external/libyuv/files/source/rotate.cc
external/libyuv/files/source/cpu_id.cc: In function 'void libyuv::CpuId(uint32, 
uint32, uint32*)':
external/libyuv/files/source/cpu_id.cc:74:3: error: 'cpu_info' was not declared 
in this scope
make: *** 
[out/target/product/armv7-a-neon/obj/STATIC_LIBRARIES/libyuv_static_intermediate
s/source/cpu_id.o] Error 1
make: *** Waiting for unfinished jobs....

Original comment by fbarch...@google.com on 21 Oct 2013 at 8:15

GoogleCodeExporter commented 9 years ago
Fixed in r820

Original comment by fbarch...@google.com on 21 Oct 2013 at 9:01