Skip to content

Commit

Permalink
Allow specifying build directory for fbclock.so (#362)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #362

This allows fbclock.so to be built in specified directory, which helps with later changes to build with nccl.

Reviewed By: leoleovich

Differential Revision: D58228662

fbshipit-source-id: 9a9562642a8a61b490035521e7b2e953cec4997c
  • Loading branch information
deepshah133 authored and facebook-github-bot committed Jun 17, 2024
1 parent 8111a2d commit fc601db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fbclock/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ CPPFLAGS=-fpermissive -lrt -lpthread -msse4.2 -lgtest -g

.PHONY: clean test

BUILDDIR ?= .

fbclock:
$(CC) $(CFLAGS) -shared -o fbclock.so -fPIC fbclock.c
mkdir -p $(BUILDDIR)
$(CC) $(CFLAGS) -shared -o $(BUILDDIR)/fbclock.so -fPIC fbclock.c

test:
$(CPP) $(CPPFLAGS) -o fbclock-test test/test.cpp fbclock.c
Expand Down

0 comments on commit fc601db

Please sign in to comment.