Skip to content

Instantly share code, notes, and snippets.

Avatar

Hiroyuki Sato hiroyuki-sato

View GitHub Profile
View ucx_gtest.txt
make -k
Making all in ucs/test_module
CCLD libtest_module.la
warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: archive library: .libs/libtest_module.a the table of contents is empty (no object file members in the library define global symbols)
LN libtest_module.la
LN .libs/libtest_module.0.dylib
LN .libs/libtest_module.dylib
Making all in ucm/test_dlopen
Making all in rpath-subdir
make[2]: Nothing to be done for `all'.
@hiroyuki-sato
hiroyuki-sato / ucx_gtest.txt
Last active Sep 22, 2020
ucx gtest 20200922
View ucx_gtest.txt
make -k
Making all in ucs/test_module
CC libtest_module_la-test_module.lo
CCLD libtest_module.la
warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: archive library: .libs/libtest_module.a the table of contents is empty (no object file members in the library define global symbols)
Making all in ucm/test_dlopen
Making all in rpath-subdir
CC dlopen_test_rpath.lo
CCLD libdlopen_test_rpath.la
@hiroyuki-sato
hiroyuki-sato / def_route_iface.c
Created Sep 19, 2020
check default router interface on macOS.
View def_route_iface.c
#include <stdio.h>
#include <stdlib.h>
#include <sys/sysctl.h>
#include <sys/socket.h>
#include <net/route.h>
#include <netinet/in.h>
#include <net/if.h>
int main(int argc,char *argv[]){
int mib[6];
@hiroyuki-sato
hiroyuki-sato / ucx_info.txt
Created Sep 16, 2020
ucx_info -d 2020-09-16
View ucx_info.txt
./src/tools/info/ucx_info -d
[1600258576.343136] [mymac:25924:0] signal.c:92 UCX WARN macOS doesn't support signal mode yet
boot_id: 784f438bd44f0000
#
# Memory domain: posix
# Component: posix
# allocate: unlimited
# remote key: 24 bytes
# rkey_ptr is supported
#
@hiroyuki-sato
hiroyuki-sato / schedule.md
Last active Sep 11, 2020
digdag schedule
View schedule.md
digdag schedules 2> /dev/null | \
awk '/project/{ printf "%s",$2 }/workflow/{ printf ":%s: ",$2 }/next scheduled to run at/{ print $6,$7,$8 }' |\
sort -k 2,3
hoge:hoge: 2020-09-11 16:00:00 +0900
moga:hoge: 2020-09-11 23:00:00 +0900
fuga:hoge: 2020-09-12 08:00:00 +0900
View build_mac_ucx.txt
ucx-porting-helpers/scripts/build_mac_ucx
Cloning into 'ucx'...
remote: Enumerating objects: 58, done.
remote: Counting objects: 100% (58/58), done.
remote: Compressing objects: 100% (50/50), done.
remote: Total 102135 (delta 31), reused 20 (delta 8), pack-reused 102077
Receiving objects: 100% (102135/102135), 32.69 MiB | 479.00 KiB/s, done.
Resolving deltas: 100% (72658/72658), done.
Updating files: 100% (906/906), done.
remote: Enumerating objects: 480, done.
@hiroyuki-sato
hiroyuki-sato / configure.md
Created Sep 8, 2020
src/ucm/configure.m4
View configure.md
#
# Copyright (C) Mellanox Technologies Ltd. 2001-2018.  ALL RIGHTS RESERVED.
#
# See file LICENSE for terms.
#

case $host_os in
    darwin*)
        AC_SUBST([UCM_MODULE_LDFLAGS],
View ld64.md

ld64 source ld64 tarball

else {
        // handle undefined dynamic_lookup
        if ( _options.undefinedTreatment() == Options::kUndefinedDynamicLookup ) {
                if ( _options.sharedRegionEligible() )
                        throwf("-undefined dynamic_lookup cannot be used to find '%s' in dylib in dyld shared cache", toTarget->name());
                return BIND_SPECIAL_DYLIB_FLAT_LOOKUP;
@hiroyuki-sato
hiroyuki-sato / ucm.txt
Created Sep 5, 2020
ucm linking error.
View ucm.txt
libtool: link: gcc -dynamiclib -Wl,-undefined -Wl,dynamic_lookup \
-o .libs/libucm.0.dylib event/.libs/libucm_la-event.o \
malloc/.libs/libucm_la-malloc_hook.o mmap/.libs/libucm_la-install.o \
util/.libs/libucm_la-replace.o util/.libs/libucm_la-log.o \
util/.libs/libucm_la-reloc.o util/.libs/libucm_la-sys.o \
bistro/.libs/libucm_la-bistro.o \
bistro/.libs/libucm_la-bistro_x86_64.o \
bistro/.libs/libucm_la-bistro_aarch64.o \
bistro/.libs/libucm_la-bistro_ppc64.o \
ptmalloc286/.libs/libucm_la-malloc.o \
View configure.txt
./configure --disable-numa --with-progress64=/path/to/progress64/
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
You can’t perform that action at this time.