mirror of
https://github.com/luxfi/node.git
synced 2026-10-30 15:24:05 +00:00
chains/cpp/core and quantumvm asked for LUX_GPU_DIR and stopped with a fatal error when nothing set it, so the public P, X and Q builds could not configure at all for anyone outside this machine. The seam is an ABI of four symbols over a complete CPU backend, not a kernel, so it belongs beside the chains defined over it; the kernels stay private in lux-gpu/gpu and are still only ever dlopen'd. The D and F ports move with it, to lux-cpp/chains and lux-rs/chains, both public. luxfi/compute held nothing its licence did not already cover, being the same BSD-3-Clause as this repository's. Co-authored-by: Hanzo Dev <[email protected]>
16 lines
559 B
Go
16 lines
559 B
Go
// SPDX-License-Identifier: BSD-3-Clause-Eco
|
|
// Copyright (C) 2019-2026, Lux Industries Inc. All rights reserved.
|
|
|
|
//go:build !cgo
|
|
|
|
package gpu
|
|
|
|
// A CGO_ENABLED=0 build has no way to open a shared library, so it never has a
|
|
// plugin. That is not a missing feature — the CPU backend is complete, and a
|
|
// node built this way computes every primitive itself. It is the build node2's
|
|
// own `make luxd RUNTIME=go` produces.
|
|
|
|
func pluginName() (string, bool) { return "", false }
|
|
|
|
func pluginKeccak256Batch(_ [][]byte) ([]Hash256, bool) { return nil, false }
|