<commit_before># building tensorflow notes

This is *very* draft, work in progress :-P

First step is to compile one single tensorflow cuda file, eg cwise_op_gpu_add.cu.cc, into llvm IR.  ~~This doc is working on this bit for now.~~  This bit is done, in draft.  I had to hack in
a `using namespace std;`, and change gpu architecture to sm30, and then it worked ok.

Run:

[tensorflow/build_cwise_add.sh](https://github.com/hughperkins/cuda-ir-to-opencl/tree/master/tensorflow/build_cwise_add.sh)

## Compiling the output, progress

Currently:
```
$ py.test -sv -k cwise --runxfail 2>&1 | grep '^E ' | wc -l
407
```

(out of total ~12,000 lines, so about ~95% is compiling ok, and ~4% needs fixing)<commit_msg>update compile errorcount on cwise add<commit_after># building tensorflow notes

This is *very* draft, work in progress :-P

First step is to compile one single tensorflow cuda file, eg cwise_op_gpu_add.cu.cc, into llvm IR.  ~~This doc is working on this bit for now.~~  This bit is done, in draft.  I had to hack in
a `using namespace std;`, and change gpu architecture to sm30, and then it worked ok.

Run:

[tensorflow/build_cwise_add.sh](https://github.com/hughperkins/cuda-ir-to-opencl/tree/master/tensorflow/build_cwise_add.sh)

## Compiling the output, progress

Currently:
```
$ py.test -sv -k cwise --runxfail 2>&1 | grep '^E ' | wc -l
587
```

(out of total ~12,000 lines, so about ~95% is compiling ok, and ~4% needs fixing)
{'fraction_non_alphanumeric': 0.11349480968858132, 'fraction_numerical': 0.020761245674740483, 'mean_word_length': 4.091549295774648, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1057108', 'n_tokens_mistral': 522, 'n_tokens_neox': 494, 'n_words': 194}