Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
neka-nat committed Feb 24, 2020
1 parent b1931b7 commit a59ba53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Please set up Jetson using [jetcard](https://github.com/NVIDIA-AI-IOT/jetcard) a

```
sudo apt-get install libxinerama-dev libxcursor-dev libglu1-mesa-dev
pip3 install https://github.com/neka-nat/cupoch/releases/download/v0.0.2/cupoch-0.0.2.0-cp36-cp36m-linux_aarch64.whl
pip3 install https://github.com/neka-nat/cupoch/releases/download/v0.0.4/cupoch-0.0.4.0-cp36-cp36m-linux_aarch64.whl
```

## Getting started
Expand Down
8 changes: 4 additions & 4 deletions src/cupoch/utility/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
#include <iostream>

#ifdef _WIN32
#define __REL_FILE__ (strrchr(__FILE__, '\\') ? strrchr(__FILE__, '\\') + 1 : __FILE__)
#define __FILENAME__ (strrchr(__FILE__, '\\') ? strrchr(__FILE__, '\\') + 1 : __FILE__)
#else
#define __REL_FILE__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
#define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
#endif
#if defined(__GNUC__)
#define cudaSafeCall(expr) ___cudaSafeCall(expr, __REL_FILE__, __LINE__, __func__)
#define cudaSafeCall(expr) ___cudaSafeCall(expr, __FILENAME__, __LINE__, __func__)
#else /* defined(__CUDACC__) || defined(__MSVC__) */
#define cudaSafeCall(expr) ___cudaSafeCall(expr, __REL_FILE__, __LINE__)
#define cudaSafeCall(expr) ___cudaSafeCall(expr, __FILENAME__, __LINE__)
#endif

namespace cupoch {
Expand Down

0 comments on commit a59ba53

Please sign in to comment.