Skip to content

Commit

Permalink
Merge pull request #47 from NVIDIA/export-dynamic
Browse files Browse the repository at this point in the history
Added `--export-dynamic` linker flag for go 1.21 support
  • Loading branch information
nvvfedorov authored Dec 4, 2023
2 parents 2e092a7 + 0c0d13b commit 025bc2f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ go 1.16

require (
github.com/Masterminds/semver v1.5.0
github.com/bits-and-blooms/bitset v1.2.1 // indirect
github.com/bits-and-blooms/bitset v1.2.1
github.com/gorilla/mux v1.8.0
)
4 changes: 0 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww=
github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y=
github.com/NVIDIA/gpu-monitoring-tools v0.0.0-20210525204842-7fbe8db26700 h1:1FxK6qecUUD+XAcaTIrRwhl67gDoB3IAfkuWnaqwk5o=
github.com/NVIDIA/gpu-monitoring-tools v0.0.0-20210525204842-7fbe8db26700/go.mod h1:oKPJa5eOTkWvlT4/Y4D8Nds44Fzmww5HUK+xwO+DwTA=
github.com/NVIDIA/gpu-monitoring-tools/bindings/go/dcgm v0.0.0-20210325210537-29b4f1784f18/go.mod h1:8qXwltEzU3idjUcVpMOv3FNgxxbDeXZPGMLyc/khWiY=
github.com/bits-and-blooms/bitset v1.2.1 h1:M+/hrU9xlMp7t4TyTDQW97d3tRPVuKFC6zBEK16QnXY=
github.com/bits-and-blooms/bitset v1.2.1/go.mod h1:gIdJ4wp64HaoK2YrL1Q5/N7Y16edYb8uY+O0FJTyyDA=
github.com/gorilla/mux v1.7.4/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So=
github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI=
github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So=
4 changes: 2 additions & 2 deletions pkg/dcgm/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
package dcgm

/*
#cgo linux LDFLAGS: -ldl -Wl,--unresolved-symbols=ignore-in-object-files
#cgo darwin LDFLAGS: -ldl -Wl,-undefined,dynamic_lookup
#cgo linux LDFLAGS: -ldl -Wl,--export-dynamic -Wl,--unresolved-symbols=ignore-in-object-files
#cgo darwin LDFLAGS: -ldl -Wl,--export-dynamic -Wl,-undefined,dynamic_lookup
#include <dlfcn.h>
#include "dcgm_agent.h"
Expand Down

0 comments on commit 025bc2f

Please sign in to comment.