Skip to content

Instantly share code, notes, and snippets.

@hiroyuki-sato
hiroyuki-sato / cc.md
Created August 17, 2020 00:57
How to include Kernel.framework headers?
#include <stdio.h>
#include <libkern/tree.h>
//#include <tree.h>

int main(){
    return(0);
}
@hiroyuki-sato
hiroyuki-sato / gtest.md
Created August 14, 2020 01:05
gtest examle
UCS_TEST_F(test_sys, machine_guid) {
    uint64_t guid1 = ucs_machine_guid();
    uint64_t guid2 = ucs_machine_guid();
    EXPECT_EQ(guid1, guid2);
}
class test_sys_machine_guid_Test : public test_sys {
@hiroyuki-sato
hiroyuki-sato / gist:90230b497a24b2c9292690f5e81f3990
Created August 13, 2020 02:56
OpenUCX build status 2020-08-13 UCP, UCS, UCM and UCT.
make -k
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in src/ucm
Making all in .
CC event/libucm_la-event.lo
event/event.c:303:19: error: use of undeclared identifier 'SHM_REMAP'
if ((shmflg & SHM_REMAP) && (shmaddr != NULL)) {
^
1 error generated.
make[3]: *** [event/libucm_la-event.lo] Error 1
@hiroyuki-sato
hiroyuki-sato / ucx.md
Created August 12, 2020 13:46
ucx build 20200812
  CC       core/libucp_la-ucp_context.lo
  CC       core/libucp_la-ucp_am.lo
core/ucp_am.c:522:36: error: conflicting types for 'ucp_am_send_nb'
UCS_PROFILE_FUNC(ucs_status_ptr_t, ucp_am_send_nb,
                                   ^
/path/to/ucx/src/ucp/api/ucp.h:2718:18: note: previous
      declaration is here
ucs_status_ptr_t ucp_am_send_nb(ucp_ep_h ep, uint16_t id,
                 ^
@hiroyuki-sato
hiroyuki-sato / ucx.txt
Created July 24, 2020 15:27
openucx build on 20200725
Making all in .
CC base/libuct_la-uct_md.lo
CC base/libuct_la-uct_mem.lo
CC base/libuct_la-uct_component.lo
CC base/libuct_la-uct_iface.lo
CC base/libuct_la-uct_worker.lo
CC base/libuct_la-uct_cm.lo
CC sm/base/libuct_la-sm_ep.lo
CC sm/base/libuct_la-sm_iface.lo
CC sm/mm/base/libuct_la-mm_iface.lo
@hiroyuki-sato
hiroyuki-sato / ucx.txt
Created July 21, 2020 14:04
openucx build status on macOS 20200721
make -k
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in src/ucm
Making all in .
CC event/libucm_la-event.lo
event/event.c:303:19: error: use of undeclared identifier 'SHM_REMAP'
if ((shmflg & SHM_REMAP) && (shmaddr != NULL)) {
^
1 error generated.
make[3]: *** [event/libucm_la-event.lo] Error 1
@hiroyuki-sato
hiroyuki-sato / openucx.txt
Created July 18, 2020 13:50
openucx ucs build on macOS 20200718
make -k
CC algorithm/libucs_la-crc.lo
CC algorithm/libucs_la-qsort_r.lo
CC arch/aarch64/libucs_la-cpu.lo
CC arch/aarch64/libucs_la-global_opts.lo
CC arch/ppc64/libucs_la-timebase.lo
CC arch/ppc64/libucs_la-global_opts.lo
CC arch/x86_64/libucs_la-cpu.lo
CC arch/x86_64/libucs_la-global_opts.lo
CC arch/libucs_la-cpu.lo
@hiroyuki-sato
hiroyuki-sato / 00README.md
Last active July 15, 2020 00:49
ucs build 20200713

C

#include <stdio.h>
#include <sys/types.h>

typedef int64_t ucs_bus_id_bit_rep_t;

int main(){
@hiroyuki-sato
hiroyuki-sato / gist:481d6b09d95f48a332375d2c7c68bebc
Last active July 10, 2020 08:32
Embulk & Digdag tech talk in Japan Jully, 2020.

Embulk & Digdag Online Meetup 2020

Embulk

Digdag

@hiroyuki-sato
hiroyuki-sato / embulk.md
Last active July 9, 2020 01:43
embulk-input-postgresql`のtimestamp without time zoneカラムの動作

embulk-input-postgresqlのtimestamp without time zoneカラムの動作

  • postgrsql.conf内に書いたtimezoneの影響は受けない
  • embulkを実行するホストのタイムゾーンに影響する
create table timezone_test (
  id int not null,