Skip to content

Commit 44ef329

Browse files
committed
update readme, fix hardcode.
1 parent d107c44 commit 44ef329

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ JNeRF is an NeRF benchmark based on [Jittor](https://github.com/Jittor/jittor).
1313
## Install
1414
JNeRF environment requirements:
1515

16-
* System: **Linux**(e.g. Ubuntu/CentOS/Arch), **macOS**, or **Windows Subsystem of Linux (WSL)**
16+
* System: **Linux**(e.g. Ubuntu/CentOS/Arch), **macOS**, **Windows**, or **Windows Subsystem of Linux (WSL)**
1717
* Python version >= 3.7
1818
* CPU compiler (require at least one of the following)
1919
* g++ (>=5.4.0)

python/jnerf/ops/code_ops/global_vars.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,16 @@
4040
proj_options = { f'FLAGS: -I"{proj_path}/eigen" -I"{proj_path}/include" -I"{proj_path}/pcg32" -I"{proj_path}/../op_header" -DGLOBAL_VAR --extended-lambda --expt-relaxed-constexpr': 1 }
4141

4242
# def start_up():
43-
with jt.profile_scope() as pr:
44-
gv = jt.code([1], int,
45-
cuda_header=global_src,
46-
cuda_src="""
47-
printf("ggg");
48-
""")
49-
gv.compile_options = proj_options
50-
gv.sync()
43+
# with jt.profile_scope() as pr:
44+
jt.profiler.start()
45+
gv = jt.code([1], int,
46+
cuda_header=global_src,
47+
cuda_src="""
48+
""")
49+
gv.compile_options = proj_options
50+
gv.sync()
51+
jt.profiler.stop()
5152

52-
# start_up()
53-
proj_options[r'FLAGS: -l"C:\Users\penghy\.cache\jittor\jt1.3.5\cl\py3.8.13\Windows-10-10.xf5\12thGenIntelRCx5f\master\cu11.7.64\jit\code__IN_SIZE_0__OUT_SIZE_1__out0_dim_1__out0_type_int32__HEADER___include__pcg32_h__names___hash_f7de0131cfb188a9_op" '] = 1
53+
if os.name == "nt":
54+
dll_name = jt.profiler.report()[-1][-10].replace(".cc", "")
55+
proj_options[f'FLAGS: -l{dll_name} '] = 1

0 commit comments

Comments
 (0)