diff --git a/bindings/go/dcgm/admin.go b/bindings/go/dcgm/admin.go index cf0b64f..30bcacd 100644 --- a/bindings/go/dcgm/admin.go +++ b/bindings/go/dcgm/admin.go @@ -1,7 +1,25 @@ +/* + * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package dcgm /* -#cgo LDFLAGS: -ldl -Wl,--unresolved-symbols=ignore-in-object-files +#cgo linux LDFLAGS: -ldl -Wl,--unresolved-symbols=ignore-in-object-files +#cgo darwin LDFLAGS: -ldl -Wl,-undefined,dynamic_lookup + #include #include "./dcgm_agent.h" diff --git a/bindings/go/nvml/bindings.go b/bindings/go/nvml/bindings.go index a8f14fc..29fd92b 100644 --- a/bindings/go/nvml/bindings.go +++ b/bindings/go/nvml/bindings.go @@ -1,8 +1,23 @@ -// Copyright (c) 2015-2018, NVIDIA CORPORATION. All rights reserved. +/* + * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package nvml -// #cgo LDFLAGS: -ldl -Wl,--unresolved-symbols=ignore-in-object-files +// #cgo linux LDFLAGS: -ldl -Wl,--unresolved-symbols=ignore-in-object-files +// #cgo darwin LDFLAGS: -ldl -Wl,-undefined,dynamic_lookup // #include "nvml.h" import "C"