PLUGIN no KAFEINNE, configuração do hardware

Iniciado por demetriomuniz, 27 de Outubro de 2008, 15:51

tópico anterior - próximo tópico

demetriomuniz

Boa tarde,
Gostaria que alguem me ajudasse a configurar um arquivo Maquefile, conforme a arquitetura do meu micro, dividir em 1 - arquivo maquefile; 2 - Meu hardware; 3 - O que pesso que está dando errado.

1 - Arquivo Maquefile:
#### compiling with g++ gives a little more speed
# !!!!!!!!!!! be aware that gcc=>4 gives half speed than gcc=>3.3.3 on 32bit cpu !!!!!!!!!!!!
#COMPILER=g++
COMPILER=g++34

# !!!!!!!!!!! Adapt the following flags to your cpu !!!!!!!!!!!!!!!!!!!!!!!!!!
FLAGS=-O3 -fPIC -fexpensive-optimizations -funroll-loops -Wall -Winline -fomit-frame-pointer
#FLAGS += -march=pentium-mmx
#FLAGS += -march=pentium2
#FLAGS += -march=pentium3
#FLAGS += -march=pentium4
#FLAGS += -march=prescott
#FLAGS += -march=athlon
FLAGS += -march=athlon-xp
#FLAGS += -march=athlon64

H_FILES = FFdecsa.h \
          parallel_generic.h \
          parallel_032_4char.h \
          parallel_032_int.h \
          parallel_064_2int.h \
          parallel_064_8charA.h \
          parallel_064_8char.h \
          parallel_064_long.h \
          parallel_064_mmx.h \
          parallel_128_16charA.h \
          parallel_128_16char.h \
          parallel_128_2long.h \
          parallel_128_2mmx.h \
          parallel_128_4int.h \
          parallel_128_sse.h

install: all

all: FFdecsa_test libFFdecsa.a

libFFdecsa.a: FFdecsa.o
   rm -f libFFdecsa.a
   ar cru libFFdecsa.a FFdecsa.o
   ranlib libFFdecsa.a

FFdecsa_test:   FFdecsa_test.o FFdecsa.o
   $(COMPILER) $(FLAGS) -o FFdecsa_test FFdecsa_test.o FFdecsa.o

FFdecsa_test.o: FFdecsa_test.c  FFdecsa.h FFdecsa_test_testcases.h
   $(COMPILER) $(FLAGS) -c FFdecsa_test.c

FFdecsa.o: tmp_autogenerated_stuff_FFdecsa.c tmp_autogenerated_stuff_stream.c  $(H_FILES)
   $(COMPILER) $(FLAGS)  -c tmp_autogenerated_stuff_FFdecsa.c -o FFdecsa.o


# the grep discards all the debugging stuff before compilation
tmp_autogenerated_stuff_FFdecsa.c: FFdecsa.c
   grep -v DBG FFdecsa.c >tmp_autogenerated_stuff_FFdecsa.c

tmp_autogenerated_stuff_stream.c: stream.c
   grep -v DBG stream.c >tmp_autogenerated_stuff_stream.c


clean:
   rm -f FFdecsa_test *.o tmp_autogenerated_stuff_*.c *.a || true

test:
   sync;clear;usleep 200000;nice --19 ./FFdecsa_test;usleep 200000;nice --19 ./FFdecsa_test;usleep 200000;nice --19 ./FFdecsa_test

test1:
   sync;clear;usleep 200000;nice --19 ./FFdecsa_test

uninstall:
___________________________//__________________________

2 - Meu hardware
description: Computer
    width: 32 bits
  *-core
       description: Motherboard
       physical id: 0
     *-memory
          description: System memory
          physical id: 0
          size: 999MiB
     *-cpu
          product: Intel(R) Core(TM)2 Duo CPU     E6550  @ 2.33GHz
          vendor: Intel Corp.
          physical id: 1
          bus info: cpu@0
          version: 6.15.11
          serial: 0000-06FB-0000-0000-0000-0000
          size: 18EHz
          width: 64 bits
          capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx x86-64 constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr lahf_lm
          configuration: id=1
        *-logicalcpu:0
             description: Logical CPU
             physical id: 1.1
             width: 64 bits
             capabilities: logical
        *-logicalcpu:1
             description: Logical CPU
             physical id: 1.2
             width: 64 bits
             capabilities: logical
     *-pci
          description: Host bridge
          product: 82G33/G31/P35/P31 Express DRAM Controller
          vendor: Intel Corporation
          physical id: 100
          bus info: pci@0000:00:00.0
          version: 02
          width: 32 bits
          clock: 33MHz
          configuration: driver=agpgart-intel module=intel_agp
        *-pci:0
             description: PCI bridge
             product: 82G33/G31/P35/P31 Express PCI Express Root Port
             vendor: Intel Corporation
             physical id: 1
             bus info: pci@0000:00:01.0
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: pci normal_decode bus_master cap_list
             configuration: driver=pcieport-driver
        *-display UNCLAIMED
             description: VGA compatible controller
             product: 82G33/G31 Express Integrated Graphics Controller
             vendor: Intel Corporation
             physical id: 2
             bus info: pci@0000:00:02.0
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: vga_controller bus_master cap_list
             configuration: latency=0
        *-multimedia
             description: Audio device
             product: 82801G (ICH7 Family) High Definition Audio Controller
             vendor: Intel Corporation
             physical id: 1b
             bus info: pci@0000:00:1b.0
             version: 01
             width: 64 bits
             clock: 33MHz
             capabilities: bus_master cap_list
             configuration: driver=HDA Intel latency=0 module=snd_hda_intel
        *-pci:1
             description: PCI bridge
             product: 82801G (ICH7 Family) PCI Express Port 1
             vendor: Intel Corporation
             physical id: 1c
             bus info: pci@0000:00:1c.0
             version: 01
             width: 32 bits
             clock: 33MHz
             capabilities: pci normal_decode bus_master cap_list
             configuration: driver=pcieport-driver
        *-pci:2
             description: PCI bridge
             product: 82801G (ICH7 Family) PCI Express Port 2
             vendor: Intel Corporation
             physical id: 1c.1
             bus info: pci@0000:00:1c.1
             version: 01
             width: 32 bits
             clock: 33MHz
             capabilities: pci normal_decode bus_master cap_list
             configuration: driver=pcieport-driver
           *-network
                description: Ethernet interface
                product: RTL8111/8168B PCI Express Gigabit Ethernet controller
                vendor: Realtek Semiconductor Co., Ltd.
                physical id: 0
                bus info: pci@0000:03:00.0
                logical name: eth0
                version: 01
                serial: 00:19:d1:a7:6b:2b
                width: 64 bits
                clock: 33MHz
                capabilities: bus_master cap_list ethernet physical
                configuration: broadcast=yes driver=r8169 driverversion=2.2LK ip=10.0.2.16 latency=0 module=r8169 multicast=yes
        *-usb:0
             description: USB Controller
             product: 82801G (ICH7 Family) USB UHCI Controller #1
             vendor: Intel Corporation
             physical id: 1d
             bus info: pci@0000:00:1d.0
             version: 01
             width: 32 bits
             clock: 33MHz
             capabilities: uhci bus_master
             configuration: driver=uhci_hcd latency=0 module=uhci_hcd
        *-usb:1
             description: USB Controller
             product: 82801G (ICH7 Family) USB UHCI Controller #2
             vendor: Intel Corporation
             physical id: 1d.1
             bus info: pci@0000:00:1d.1
             version: 01
             width: 32 bits
             clock: 33MHz
             capabilities: uhci bus_master
             configuration: driver=uhci_hcd latency=0 module=uhci_hcd
        *-usb:2
             description: USB Controller
             product: 82801G (ICH7 Family) USB UHCI Controller #3
             vendor: Intel Corporation
             physical id: 1d.2
             bus info: pci@0000:00:1d.2
             version: 01
             width: 32 bits
             clock: 33MHz
             capabilities: uhci bus_master
             configuration: driver=uhci_hcd latency=0 module=uhci_hcd
        *-usb:3
             description: USB Controller
             product: 82801G (ICH7 Family) USB UHCI Controller #4
             vendor: Intel Corporation
             physical id: 1d.3
             bus info: pci@0000:00:1d.3
             version: 01
             width: 32 bits
             clock: 33MHz
             capabilities: uhci bus_master
             configuration: driver=uhci_hcd latency=0 module=uhci_hcd
        *-usb:4
             description: USB Controller
             product: 82801G (ICH7 Family) USB2 EHCI Controller
             vendor: Intel Corporation
             physical id: 1d.7
             bus info: pci@0000:00:1d.7
             version: 01
             width: 32 bits
             clock: 33MHz
             capabilities: ehci bus_master cap_list
             configuration: driver=ehci_hcd latency=0 module=ehci_hcd
        *-pci:3
             description: PCI bridge
             product: 82801 PCI Bridge
             vendor: Intel Corporation
             physical id: 1e
             bus info: pci@0000:00:1e.0
             version: e1
             width: 32 bits
             clock: 33MHz
             capabilities: pci subtractive_decode bus_master cap_list
           *-network
                description: Network controller
                product: B2C2 FlexCopII DVB chip / Technisat SkyStar2 DVB card
                vendor: Techsan Electronics Co Ltd
                physical id: 6
                bus info: pci@0000:04:06.0
                version: 02
                width: 32 bits
                clock: 33MHz
                capabilities: bus_master
                configuration: driver=b2c2_flexcop_pci latency=32 module=b2c2_flexcop_pci
        *-isa
             description: ISA bridge
             product: 82801GB/GR (ICH7 Family) LPC Interface Bridge
             vendor: Intel Corporation
             physical id: 1f
             bus info: pci@0000:00:1f.0
             version: 01
             width: 32 bits
             clock: 33MHz
             capabilities: isa bus_master cap_list
             configuration: latency=0
        *-ide:0
             description: IDE interface
             product: 82801G (ICH7 Family) IDE Controller
             vendor: Intel Corporation
             physical id: 1f.1
             bus info: pci@0000:00:1f.1
             logical name: scsi0
             version: 01
             width: 32 bits
             clock: 33MHz
             capabilities: ide bus_master emulated
             configuration: driver=ata_piix latency=0 module=ata_piix
           *-cdrom
                description: DVD writer
                product: DVD RW AW-Q160A
                vendor: SONY
                physical id: 0.0.0
                bus info: scsi@0:0.0.0
                logical name: /dev/cdrom
                logical name: /dev/dvd
                logical name: /dev/scd0
                logical name: /dev/sr0
                version: AYS2
                capabilities: removable audio cd-r cd-rw dvd dvd-r
                configuration: ansiversion=5 status=ready
              *-medium
                   physical id: 0
                   logical name: /dev/cdrom
        *-ide:1
             description: IDE interface
             product: 82801GB/GR/GH (ICH7 Family) SATA IDE Controller
             vendor: Intel Corporation
             physical id: 1f.2
             bus info: pci@0000:00:1f.2
             version: 01
             width: 32 bits
             clock: 66MHz
             capabilities: ide bus_master cap_list
             configuration: driver=ata_piix latency=0 module=ata_piix
        *-serial UNCLAIMED
             description: SMBus
             product: 82801G (ICH7 Family) SMBus Controller
             vendor: Intel Corporation
             physical id: 1f.3
             bus info: pci@0000:00:1f.3
             version: 01
             width: 32 bits
             clock: 33MHz
             configuration: latency=0
___________________________________//_____________________

3 - O que penso que está dando errado:
a) Sei que a minha máquina é 64 bits
b) A configuração FLAGS += Não sei qual é ou tá faltando acrescentar no caso da minha máquina
Alguém pode me ajudar?

demetriomuniz

 ;D
Resolvido, conseguir ajuda com o pessoal muito legal DragTeam, inclusive tô usando o DragUbuntu, muito obrigado! a todos que visitaram este.