Page 9 of 9

Re: apgsearch v5.0

Posted: September 6th, 2025, 11:25 am
by LaundryPizza03
Is this a 32/64-bit error like in this 2015 post?

Code: Select all

% bash recompile.sh --rule b3-eq4-akwz5-cein6-ac78s01e2ei3eikry4-eiqw5ikr6kn7e
sh -c 'rm -f apgluxe *.o */*.o *.op */*.op *.gdca */*.gcda *.profraw *.profdata || true'
echo Clean done
Clean done
Downloading lifelib...
Submodule 'lifelib' (https://gitlab.com/apgoucher/lifelib.git) registered for path 'lifelib'
Cloning into '/Users/gabefrohaug/apgmera/lifelib'...
Submodule path 'lifelib': checked out '05632e382096925c0b1724fd59d2f0784f0213d6'
Submodule 'cpads' (https://gitlab.com/hatsya/open-source/cpads.git) registered for path 'lifelib/cpads'
Cloning into '/Users/gabefrohaug/apgmera/lifelib/cpads'...
Submodule path 'lifelib/cpads': checked out 'bfb3d49bd4a6ea804c9ddd070f16b9d5bf4fd865'
Symmetry unspecified; assuming C1.
Configuring rule b3-eq4-akwz5-cein6-ac78s01e2ei3eikry4-eiqw5ikr6kn7e; symmetry C1
Using /opt/anaconda3/envs/native/bin/python3 to configure lifelib...
Valid symmetry: C1
Success!
g++ -c -Wall -Wextra -pedantic -O3 -pthread -g -march=native -flto --std=c++11  main.cpp -o main.o
In file included from main.cpp:6:
In file included from ./includes/base.h:7:
In file included from ./includes/../lifelib/upattern.h:9:
In file included from ./includes/../lifelib/avxlife/uli.h:6:
In file included from ./includes/../lifelib/avxlife/eors.h:4:
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/cpuid.h:14:2: error: this header is for x86 only
   14 | #error this header is for x86 only
      |  ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/cpuid.h:309:5: error: invalid output constraint '=a' in asm
  309 |     __cpuid(__leaf, __eax, __ebx, __ecx, __edx);
      |     ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/cpuid.h:273:11: note: expanded from macro '__cpuid'
  273 |         : "=a"(__eax), "=r" (__ebx), "=c"(__ecx), "=d"(__edx) \
      |           ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/cpuid.h:324:5: error: invalid output constraint '=a' in asm
  324 |     __cpuid(__leaf, *__eax, *__ebx, *__ecx, *__edx);
      |     ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/cpuid.h:273:11: note: expanded from macro '__cpuid'
  273 |         : "=a"(__eax), "=r" (__ebx), "=c"(__ecx), "=d"(__edx) \
      |           ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/cpuid.h:338:5: error: invalid output constraint '=a' in asm
  338 |     __cpuid_count(__leaf, __subleaf, *__eax, *__ebx, *__ecx, *__edx);
      |     ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/cpuid.h:280:11: note: expanded from macro '__cpuid_count'
  280 |         : "=a"(__eax), "=r" (__ebx), "=c"(__ecx), "=d"(__edx) \
      |           ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/cpuid.h:346:3: error: invalid output constraint '=a' in asm
  346 |   __cpuid_count(__leaf, __subleaf, __cpu_info[0], __cpu_info[1], __cpu_info[2],
      |   ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/cpuid.h:280:11: note: expanded from macro '__cpuid_count'
  280 |         : "=a"(__eax), "=r" (__ebx), "=c"(__ecx), "=d"(__edx) \
      |           ^
In file included from main.cpp:6:
In file included from ./includes/base.h:7:
In file included from ./includes/../lifelib/upattern.h:9:
In file included from ./includes/../lifelib/avxlife/uli.h:6:
./includes/../lifelib/avxlife/eors.h:57:13: error: invalid output constraint '=a' in asm
   57 |             __cpuid(0, eax, ebx, ecx, edx);
      |             ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/cpuid.h:273:11: note: expanded from macro '__cpuid'
  273 |         : "=a"(__eax), "=r" (__ebx), "=c"(__ecx), "=d"(__edx) \
      |           ^
In file included from main.cpp:6:
In file included from ./includes/base.h:7:
In file included from ./includes/../lifelib/upattern.h:9:
In file included from ./includes/../lifelib/avxlife/uli.h:6:
./includes/../lifelib/avxlife/eors.h:62:13: error: invalid output constraint '=a' in asm
   62 |             __cpuid(1, eax, ebx, ecx, edx);
      |             ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/cpuid.h:273:11: note: expanded from macro '__cpuid'
  273 |         : "=a"(__eax), "=r" (__ebx), "=c"(__ecx), "=d"(__edx) \
      |           ^
In file included from main.cpp:6:
In file included from ./includes/base.h:7:
In file included from ./includes/../lifelib/upattern.h:9:
In file included from ./includes/../lifelib/avxlife/uli.h:6:
./includes/../lifelib/avxlife/eors.h:79:17: error: invalid output constraint '=a' in asm
   79 |                 __cpuid_count(7, 0, eax, ebx, ecx, edx);
      |                 ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/cpuid.h:280:11: note: expanded from macro '__cpuid_count'
  280 |         : "=a"(__eax), "=r" (__ebx), "=c"(__ecx), "=d"(__edx) \
      |           ^
In file included from main.cpp:6:
In file included from ./includes/base.h:7:
In file included from ./includes/../lifelib/upattern.h:9:
In file included from ./includes/../lifelib/avxlife/uli.h:7:
./includes/../lifelib/avxlife/lifeperm.h:47:11: error: unknown register name 'xmm0' in asm
   47 |         : "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "memory" );
      |           ^
./includes/../lifelib/avxlife/lifeperm.h:85:11: error: unknown register name 'xmm0' in asm
   85 |         : "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "memory" );
      |           ^
./includes/../lifelib/avxlife/lifeperm.h:107:11: error: unknown register name 'xmm0' in asm
  107 |         : "xmm0", "xmm1", "xmm2", "memory" );
      |           ^
./includes/../lifelib/avxlife/lifeperm.h:126:11: error: unknown register name 'xmm0' in asm
  126 |         : "xmm0", "xmm1", "xmm2", "xmm3", "memory" );
      |           ^
./includes/../lifelib/avxlife/lifeperm.h:196:11: error: unknown register name 'xmm0' in asm
  196 |         : "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "memory" );
      |           ^
./includes/../lifelib/avxlife/lifeperm.h:253:11: error: unknown register name 'xmm0' in asm
  253 |         : "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "memory" );
      |           ^
./includes/../lifelib/avxlife/lifeperm.h:292:11: error: unknown register name 'xmm0' in asm
  292 |         : "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7", "memory" );
      |           ^
./includes/../lifelib/avxlife/lifeperm.h:320:11: error: unknown register name 'xmm0' in asm
  320 |         : "xmm0", "xmm1", "xmm2", "xmm3", "memory" );
      |           ^
./includes/../lifelib/avxlife/lifeperm.h:347:11: error: unknown register name 'xmm0' in asm
  347 |         : "xmm0", "xmm1", "xmm2", "xmm3", "memory" );
      |           ^
./includes/../lifelib/avxlife/lifeperm.h:388:11: error: unknown register name 'xmm0' in asm
  388 |         : "xmm0", "xmm1", "xmm2", "xmm3", "memory" );
      |           ^
./includes/../lifelib/avxlife/lifeperm.h:415:11: error: unknown register name 'xmm0' in asm
  415 |         : "xmm0", "xmm1", "xmm2", "xmm3", "memory" );
      |           ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [main.o] Error 1
EDIT: No, this is because I am comiling for Apple M2. The documentation shouuld be updated to inform that Apple M2 compilation is similar to Apple M1.

EDIT2: I can't quit by pressing q.

Re: apgsearch v5.0

Posted: October 26th, 2025, 6:20 pm
by muzik
Now that apgsearch supports all possible GPU symmetries, perhaps now is a good time to reiterate this: when will C3_3 and D6_3 symmetries be supported, so we can have a complete set of hexagonal grid symmetries for searching?

With this, I'd be able to find oscillators via soup search that fill gaps in the OmniOsci project. (Having Catagolue provide the actual soups directly as well would be appreciated.)

Re: apgsearch v5.0

Posted: November 5th, 2025, 12:18 pm
by LaundryPizza03
I can't use the recompile script. This started after attempting the same rule in an invalid symmetry.

Code: Select all

> ./recompile.sh --rule b2-a3in4as2a3jnr4ijkrw5-ceiy6ekn7c --symmetry C2_2
sh -c 'rm -f apgluxe *.o */*.o *.op */*.op *.gdca */*.gcda *.profraw *.profdata || true'
echo Clean done
Clean done
Ensuring lifelib is up-to-date...
Configuring rule b2-a3in4as2a3jnr4ijkrw5-ceiy6ekn7c; symmetry C2_2
Using /opt/anaconda3/envs/native/bin/python3 to configure lifelib...
Valid symmetry: C2_2
Success!
g++ -c -Wall -Wextra -pedantic -O3 -pthread -g -march=native -flto --std=c++11  main.cpp -o main.o
In file included from main.cpp:6:
In file included from ./includes/base.h:7:
In file included from ./includes/../lifelib/upattern.h:9:
In file included from ./includes/../lifelib/avxlife/uli.h:6:
In file included from ./includes/../lifelib/avxlife/eors.h:4:
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/cpuid.h:14:2: error: this header is for x86 only
   14 | #error this header is for x86 only
      |  ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/cpuid.h:309:5: error: invalid output constraint '=a' in asm
  309 |     __cpuid(__leaf, __eax, __ebx, __ecx, __edx);
      |     ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/cpuid.h:273:11: note: expanded from macro '__cpuid'
  273 |         : "=a"(__eax), "=r" (__ebx), "=c"(__ecx), "=d"(__edx) \
      |           ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/cpuid.h:324:5: error: invalid output constraint '=a' in asm
  324 |     __cpuid(__leaf, *__eax, *__ebx, *__ecx, *__edx);
      |     ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/cpuid.h:273:11: note: expanded from macro '__cpuid'
  273 |         : "=a"(__eax), "=r" (__ebx), "=c"(__ecx), "=d"(__edx) \
      |           ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/cpuid.h:338:5: error: invalid output constraint '=a' in asm
  338 |     __cpuid_count(__leaf, __subleaf, *__eax, *__ebx, *__ecx, *__edx);
      |     ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/cpuid.h:280:11: note: expanded from macro '__cpuid_count'
  280 |         : "=a"(__eax), "=r" (__ebx), "=c"(__ecx), "=d"(__edx) \
      |           ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/cpuid.h:346:3: error: invalid output constraint '=a' in asm
  346 |   __cpuid_count(__leaf, __subleaf, __cpu_info[0], __cpu_info[1], __cpu_info[2],
      |   ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/cpuid.h:280:11: note: expanded from macro '__cpuid_count'
  280 |         : "=a"(__eax), "=r" (__ebx), "=c"(__ecx), "=d"(__edx) \
      |           ^
In file included from main.cpp:6:
In file included from ./includes/base.h:7:
In file included from ./includes/../lifelib/upattern.h:9:
In file included from ./includes/../lifelib/avxlife/uli.h:6:
./includes/../lifelib/avxlife/eors.h:57:13: error: invalid output constraint '=a' in asm
   57 |             __cpuid(0, eax, ebx, ecx, edx);
      |             ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/cpuid.h:273:11: note: expanded from macro '__cpuid'
  273 |         : "=a"(__eax), "=r" (__ebx), "=c"(__ecx), "=d"(__edx) \
      |           ^
In file included from main.cpp:6:
In file included from ./includes/base.h:7:
In file included from ./includes/../lifelib/upattern.h:9:
In file included from ./includes/../lifelib/avxlife/uli.h:6:
./includes/../lifelib/avxlife/eors.h:62:13: error: invalid output constraint '=a' in asm
   62 |             __cpuid(1, eax, ebx, ecx, edx);
      |             ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/cpuid.h:273:11: note: expanded from macro '__cpuid'
  273 |         : "=a"(__eax), "=r" (__ebx), "=c"(__ecx), "=d"(__edx) \
      |           ^
In file included from main.cpp:6:
In file included from ./includes/base.h:7:
In file included from ./includes/../lifelib/upattern.h:9:
In file included from ./includes/../lifelib/avxlife/uli.h:6:
./includes/../lifelib/avxlife/eors.h:79:17: error: invalid output constraint '=a' in asm
   79 |                 __cpuid_count(7, 0, eax, ebx, ecx, edx);
      |                 ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/cpuid.h:280:11: note: expanded from macro '__cpuid_count'
  280 |         : "=a"(__eax), "=r" (__ebx), "=c"(__ecx), "=d"(__edx) \
      |           ^
In file included from main.cpp:6:
In file included from ./includes/base.h:7:
In file included from ./includes/../lifelib/upattern.h:9:
In file included from ./includes/../lifelib/avxlife/uli.h:7:
./includes/../lifelib/avxlife/lifeperm.h:47:11: error: unknown register name 'xmm0' in asm
   47 |         : "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "memory" );
      |           ^
./includes/../lifelib/avxlife/lifeperm.h:85:11: error: unknown register name 'xmm0' in asm
   85 |         : "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "memory" );
      |           ^
./includes/../lifelib/avxlife/lifeperm.h:107:11: error: unknown register name 'xmm0' in asm
  107 |         : "xmm0", "xmm1", "xmm2", "memory" );
      |           ^
./includes/../lifelib/avxlife/lifeperm.h:126:11: error: unknown register name 'xmm0' in asm
  126 |         : "xmm0", "xmm1", "xmm2", "xmm3", "memory" );
      |           ^
./includes/../lifelib/avxlife/lifeperm.h:196:11: error: unknown register name 'xmm0' in asm
  196 |         : "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "memory" );
      |           ^
./includes/../lifelib/avxlife/lifeperm.h:253:11: error: unknown register name 'xmm0' in asm
  253 |         : "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "memory" );
      |           ^
./includes/../lifelib/avxlife/lifeperm.h:292:11: error: unknown register name 'xmm0' in asm
  292 |         : "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7", "memory" );
      |           ^
./includes/../lifelib/avxlife/lifeperm.h:320:11: error: unknown register name 'xmm0' in asm
  320 |         : "xmm0", "xmm1", "xmm2", "xmm3", "memory" );
      |           ^
./includes/../lifelib/avxlife/lifeperm.h:347:11: error: unknown register name 'xmm0' in asm
  347 |         : "xmm0", "xmm1", "xmm2", "xmm3", "memory" );
      |           ^
./includes/../lifelib/avxlife/lifeperm.h:388:11: error: unknown register name 'xmm0' in asm
  388 |         : "xmm0", "xmm1", "xmm2", "xmm3", "memory" );
      |           ^
./includes/../lifelib/avxlife/lifeperm.h:415:11: error: unknown register name 'xmm0' in asm
  415 |         : "xmm0", "xmm1", "xmm2", "xmm3", "memory" );
      |           ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [main.o] Error 1
EDIT: Whoops, repeat issue from previous post.