Skip to content

Commit e63e186

Browse files
committed
Minor documentation fixes
1 parent 9bd2884 commit e63e186

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

include/drjit-core/jit.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,12 +1073,12 @@ extern JIT_EXPORT uint32_t jit_var_mem_map(JIT_ENUM JitBackend backend,
10731073
* Copy a memory region onto the device and return its variable index. Its
10741074
* reference count is initialized to \c 1.
10751075
*
1076+
* \param backend
1077+
* The JIT backend in which the variable should be created
1078+
*
10761079
* \param atype
10771080
* Enumeration characterizing the "flavor" of the source memory.
10781081
*
1079-
* \param cuda
1080-
* Is this a CUDA variable?
1081-
*
10821082
* \param vtype
10831083
* Type of the variable to be created, see \ref VarType for details.
10841084
*

src/util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ extern uint32_t jitc_mkperm(JitBackend backend, const uint32_t *values, uint32_t
6464
/// Perform a synchronous copy operation
6565
extern void jitc_memcpy(JitBackend backend, void *dst, const void *src, size_t size);
6666

67-
/// Perform an assynchronous copy operation
67+
/// Perform an asynchronous copy operation
6868
extern void jitc_memcpy_async(JitBackend backend, void *dst, const void *src, size_t size);
6969

7070
/// Asynchronously update a single element in memory

src/var.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,11 +1531,9 @@ uint32_t jitc_var_mem_copy(JitBackend backend, AllocType atype, VarType vtype,
15311531
size_t total_size = (size_t) size * (size_t) type_size[(int) vtype];
15321532
void *target_ptr;
15331533

1534-
ThreadState *ts = thread_state(backend);
15351534
if (backend == JitBackend::CUDA) {
15361535
target_ptr = jitc_malloc(AllocType::Device, total_size);
15371536

1538-
scoped_set_context guard(ts->context);
15391537
if (atype == AllocType::HostAsync) {
15401538
jitc_fail("jit_var_mem_copy(): copy from HostAsync to GPU memory not supported!");
15411539
} else if (atype == AllocType::Host) {

0 commit comments

Comments
 (0)