Skip to content

Commit

Permalink
remove unused header content in FFI (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
joelberkeley authored May 4, 2024
1 parent 2d549df commit f168fce
Show file tree
Hide file tree
Showing 24 changed files with 14 additions and 456 deletions.
2 changes: 1 addition & 1 deletion backend/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.10
0.0.11
20 changes: 0 additions & 20 deletions backend/src/ffi.h

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ limitations under the License.
#include "tensorflow/compiler/xla/client/client_library.h"
#include "tensorflow/compiler/xla/client/local_client.h"

#include "local_client.h"
#include "../../../stream_executor/platform.h"
#include "client_library.h"

extern "C" {
LocalClient* ClientLibrary_GetOrCreateLocalClient(
Expand Down
22 changes: 0 additions & 22 deletions backend/src/tensorflow/compiler/xla/client/client_library.h

This file was deleted.

Empty file.
21 changes: 0 additions & 21 deletions backend/src/tensorflow/compiler/xla/client/lib/arithmetic.h

This file was deleted.

23 changes: 0 additions & 23 deletions backend/src/tensorflow/compiler/xla/client/lib/constants.h

This file was deleted.

31 changes: 0 additions & 31 deletions backend/src/tensorflow/compiler/xla/client/lib/math.h

This file was deleted.

22 changes: 0 additions & 22 deletions backend/src/tensorflow/compiler/xla/client/lib/matrix.h

This file was deleted.

10 changes: 9 additions & 1 deletion backend/src/tensorflow/compiler/xla/client/lib/prng.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ limitations under the License.

#include "../../shape.h"
#include "../xla_builder.h"
#include "prng.h"

xla::BitGeneratorTy BitGenerator(int bit_generator) {
xla::BitGeneratorTy bit_generator_;
Expand All @@ -37,6 +36,15 @@ xla::BitGeneratorTy BitGenerator(int bit_generator) {
}

extern "C" {
struct RngOutput {
XlaOp* value;
XlaOp* state;
};

void delete_RngOutput(RngOutput* rngOutput) {
free(rngOutput);
}

RngOutput* UniformFloatingPointDistribution(
XlaOp& key,
XlaOp& initial_state,
Expand Down
41 changes: 0 additions & 41 deletions backend/src/tensorflow/compiler/xla/client/lib/prng.h

This file was deleted.

2 changes: 2 additions & 0 deletions backend/src/tensorflow/compiler/xla/client/local_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ limitations under the License.
#include "tensorflow/compiler/xla/client/local_client.h"

#include "../literal.h"
#include "global_data.h"
#include "local_client.h"
#include "xla_computation.h"

extern "C" {
GlobalData* LocalClient_TransferToServer(LocalClient& client, Literal& literal) {
Expand Down
13 changes: 0 additions & 13 deletions backend/src/tensorflow/compiler/xla/client/local_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,6 @@ 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.
*/
#include "../literal.h"
#include "global_data.h"
#include "xla_computation.h"

extern "C" {
struct LocalClient;

GlobalData* LocalClient_TransferToServer(LocalClient& client, Literal& literal);

Literal* LocalClient_ExecuteAndTransfer(
LocalClient& client,
XlaComputation& computation,
GlobalData** arguments,
int arguments_len
);
}
1 change: 1 addition & 0 deletions backend/src/tensorflow/compiler/xla/client/xla_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ limitations under the License.
#include "tensorflow/compiler/xla/xla_data.pb.h"

#include "../literal.h"
#include "../shape.h"
#include "../xla_data.pb.h"
#include "xla_builder.h"
#include "xla_computation.h"
Expand Down
Loading

0 comments on commit f168fce

Please sign in to comment.