You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Go 1.6.2 on 64 bit machine with openmpi err := C.MPI_Init(&c_argc, (***C.char)(unsafe.Pointer(&c_argv)))
I'm not familliar with that api, but probably you want to have a **C.char and therefore leave the & before the c_argv
The text was updated successfully, but these errors were encountered:
panic: runtime error: cgo argument has Go pointer to Go pointer
goroutine 1 [running]:
panic(0x4f0780, 0xc82000a360)
/usr/lib/go/src/runtime/panic.go:481 +0x3e6
github.com/JohannWeging/go-mpi.Init(0x7a4560, 0x0)
.../src/github.com/JohannWeging/go-mpi/init.go:41 +0x2c1
main.main()
.../main.go:16 +0x111
Go 1.6.2 on 64 bit machine with openmpi
err := C.MPI_Init(&c_argc, (***C.char)(unsafe.Pointer(&c_argv)))
I'm not familliar with that api, but probably you want to have a **C.char and therefore leave the
&
before thec_argv
The text was updated successfully, but these errors were encountered: